Exemplo n.º 1
0
 public function index()
 {
     $this->autoRender = false;
     //        echo phpinfo();
     $selenium = new Testing_Selenium('chrome', 'http://cpa.cesufoz.edu.br');
     $selenium->start();
     //        $selenium->getTitle('CPA'); // Qual é a URL que ele vai usar
     $selenium->type("UserPassword", '362476');
     $selenium->stop();
     //        $this->setUp();
     //$this->testTitle();
 }
 public function doCommand($verb, $args = array())
 {
     $response = parent::doCommand($verb, $args);
     $this->is_ok($response);
     return $response;
 }
Exemplo n.º 3
0
 /**
  * Wait for a popup window to appear and load up.
  *
  * @param  string  $windowId
  * @param  integer $timeout
  * @return 
  * @access public
  */
 public function waitForPopUp($windowId, $timeout = NULL)
 {
     return $this->selenium->waitForPopUp($windowId, $timeout);
 }