示例#1
0
 /**
  * @param WebDriverDimension  $windowSize
  * @param WebDriverPoint|null $position
  */
 public function setWindowSize(WebDriverDimension $windowSize, WebDriverPoint $position = null)
 {
     if (null == $position) {
         $position = new WebDriverPoint(0, 0);
     }
     $this->_webDriver->manage()->window()->setSize($windowSize);
     $this->_webDriver->manage()->window()->setPosition($position);
 }
示例#2
0
 /**
  * @return WebDriverOptions
  * @throws WebDriverException
  */
 public function manage()
 {
     try {
         return $this->driver->manage();
     } catch (WebDriverException $exception) {
         $this->dispatchOnException($exception);
     }
 }
示例#3
0
 /**
  * Applies the script timeout setting.
  *
  * @return $this|TestSuite Same instance for chained method calls.
  */
 private function _applyScriptTimeoutSetting()
 {
     $scriptTimeout = $this->suiteSettings->getScriptTimeout();
     if ((int) $scriptTimeout !== 0) {
         $this->output('Set script timeout setting to ' . $scriptTimeout . ' seconds.');
         $this->webDriver->manage()->timeouts()->setScriptTimeout($scriptTimeout);
     }
     return $this;
 }
示例#4
0
 private function configureDriver()
 {
     $this->driver->manage()->timeouts()->implicitlyWait(15);
 }