예제 #1
0
 /**
  * @param $testCase
  * @param bool $redirect
  */
 public function __construct($testCase, $redirect = true)
 {
     $this->test = $testCase;
     // @codingStandardsIgnoreStart
     $this->test->currentWindow()->size(array('width' => intval(viewportWIDTH), 'height' => intval(viewportHEIGHT)));
     // @codingStandardsIgnoreEnd
     if (!is_null($this->redirectUrl) && $redirect) {
         $this->test->url($this->redirectUrl);
         $this->waitPageToLoad();
         $this->waitForAjax();
     }
 }