Skip to content

Commit

Permalink
Fix Selenium test setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
salsolatragus committed Sep 20, 2019
1 parent 6af4acd commit edd7d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mubench.reviewsite/tests/Selenium/WebDriverTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function __construct()
parent::__construct();
$chromeOptions = new \Facebook\WebDriver\Chrome\ChromeOptions();
$chromeOptions->addArguments(array('headless' , '-no-sandbox')); //
$chromeOptions->setExperimentalOption('w3c', true); // Fix https://stackoverflow.com/questions/56556709/codeception-undefined-index-element-error
$capabilities = DesiredCapabilities::chrome();
$capabilities->setCapability(\Facebook\WebDriver\Chrome\ChromeOptions::CAPABILITY, $chromeOptions);
$this->driver = RemoteWebDriver::create("http://localhost:4444/wd/hub",
Expand Down

0 comments on commit edd7d88

Please sign in to comment.