fix to accept browser args key and val
This commit is contained in:
parent
61899f1013
commit
ffccf63792
@ -11,9 +11,9 @@ abstract class BrowserTest extends \PHPUnit_Extensions_Selenium2TestCase{
|
|||||||
public function setUp(){
|
public function setUp(){
|
||||||
$this->setHost('localhost');
|
$this->setHost('localhost');
|
||||||
$this->setPort(4444);
|
$this->setPort(4444);
|
||||||
$args=explode(' ',getenv('SeleniumBrowserArgs'));
|
$args=explode(' ',getenv('SeleniumBrowserArgsVal'));
|
||||||
$args[]='screenshot';
|
$args[]='screenshot';
|
||||||
$this->setDesiredCapabilities(['moz:firefoxOptions'=>['args'=>$args]]);
|
$this->setDesiredCapabilities([getenv('SeleniumBrowserArgsKey')=>['args'=>$args]]);
|
||||||
$this->setBrowserUrl(getenv('SeleniumBrowserUrl'));
|
$this->setBrowserUrl(getenv('SeleniumBrowserUrl'));
|
||||||
$this->setBrowser(getenv('SeleniumBrowser'));
|
$this->setBrowser(getenv('SeleniumBrowser'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user