コード例 #1
0
 public static function RemoteControl()
 {
     if (!isset(self::$instance)) {
         self::$instance = new SaunterPHP_Framework_Bindings_SaunterRemoteControl($GLOBALS['settings']['browser'], $GLOBALS['settings']['webserver'], $GLOBALS['settings']['seleniumserver'], $GLOBALS['settings']['seleniumport']);
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: RemoteControl.php プロジェクト: rivlinp/saunter.php
 public function setUp()
 {
     self::$verificationErrors = array();
     self::$log = \Log::singleton('file', $GLOBALS['settings']['logname'], $this->getName());
     self::$selenium = \SaunterPHP_Framework_SeleniumConnection::RemoteControl();
     self::$selenium->start();
     self::$selenium->windowMaximize();
     $this->sessionId = self::$selenium->getEval("selenium.sessionId");
 }
コード例 #3
0
ファイル: Page.php プロジェクト: rivlinp/saunter.php
 function __construct()
 {
     self::$string_timeout = $GLOBALS['timeouts']["str_ms"];
     self::$selenium = \SaunterPHP_Framework_SeleniumConnection::RemoteControl();
 }