Skip to content

Commit 8f1f1a5

Browse files
committed
Fix Selenium test setup.
1 parent 6af4acd commit 8f1f1a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: mubench.reviewsite/tests/Selenium/WebDriverTestCase.php

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function __construct()
2020
parent::__construct();
2121
$chromeOptions = new \Facebook\WebDriver\Chrome\ChromeOptions();
2222
$chromeOptions->addArguments(array('headless' , '-no-sandbox')); //
23+
$chromeOptions->setExperimentalOption('w3c', false); // Fix https://stackoverflow.com/questions/56556709/codeception-undefined-index-element-error
2324
$capabilities = DesiredCapabilities::chrome();
2425
$capabilities->setCapability(\Facebook\WebDriver\Chrome\ChromeOptions::CAPABILITY, $chromeOptions);
2526
$this->driver = RemoteWebDriver::create("http://localhost:4444/wd/hub",

0 commit comments

Comments
 (0)