Esempio n. 1
0
 public function setUp()
 {
     $this->noPhpWebserver();
     $this->noSelenium();
     $this->module = new \Codeception\Module\WebDriver(make_container());
     $url = 'http://localhost:8000';
     $this->module->_setConfig(['url' => $url, 'browser' => 'firefox', 'port' => '4444', 'restart' => true, 'wait' => 0]);
     $this->module->_initialize();
     $this->module->_before($this->makeTest());
     $this->webDriver = $this->module->webDriver;
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->noPhpWebserver();
     $this->noSelenium();
     $this->module = new \Codeception\Module\WebDriver();
     $url = '';
     if (version_compare(PHP_VERSION, '5.4', '>=')) {
         $url = 'http://localhost:8000';
     }
     $this->module->_setConfig(array('url' => $url, 'browser' => 'firefox', 'port' => '4444', 'restart' => true, 'wait' => 0));
     $this->module->_initialize();
     $this->module->_before($this->makeTest());
 }
Esempio n. 3
0
 public function _setConfig($config)
 {
     parent::_setConfig(array_merge($this->defaultAngularConfig, $config));
 }