fix to accept browser args key and val

This commit is contained in:
James 2020-02-01 18:20:34 +00:00
parent 61899f1013
commit ffccf63792

View File

@ -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'));
} }