diff --git a/src/BrowserTest.php b/src/BrowserTest.php index 994f213..277f95e 100644 --- a/src/BrowserTest.php +++ b/src/BrowserTest.php @@ -11,9 +11,9 @@ abstract class BrowserTest extends \PHPUnit_Extensions_Selenium2TestCase{ public function setUp(){ $this->setHost('localhost'); $this->setPort(4444); - $args=explode(' ',getenv('SeleniumBrowserArgs')); + $args=explode(' ',getenv('SeleniumBrowserArgsVal')); $args[]='screenshot'; - $this->setDesiredCapabilities(['moz:firefoxOptions'=>['args'=>$args]]); + $this->setDesiredCapabilities([getenv('SeleniumBrowserArgsKey')=>['args'=>$args]]); $this->setBrowserUrl(getenv('SeleniumBrowserUrl')); $this->setBrowser(getenv('SeleniumBrowser')); }