From ffccf637926d727b0205c219458645b9dd253638 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 1 Feb 2020 18:20:34 +0000 Subject: [PATCH] fix to accept browser args key and val --- src/BrowserTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); }