diff --git a/tests/WebDriverConfig.php b/tests/WebDriverConfig.php index 9cf0a08..f751172 100644 --- a/tests/WebDriverConfig.php +++ b/tests/WebDriverConfig.php @@ -49,8 +49,8 @@ public function createDriver() $capabilityMap = [ 'firefox' => FirefoxDriver::PROFILE, - 'chrome' => ChromeOptions::CAPABILITY_W3C, - 'msedge' => ChromeOptions::CAPABILITY_W3C, + 'chrome' => ChromeOptions::CAPABILITY, + 'msedge' => ChromeOptions::CAPABILITY, ]; if (isset($capabilityMap[$browser])) { @@ -58,6 +58,7 @@ public function createDriver() if ($browser === 'chrome' || $browser === 'msedge') { if (!$optionsOrProfile) { $optionsOrProfile = new ChromeOptions(); + $optionsOrProfile->addArguments(['disable-gpu']); } $optionsOrProfile = $this->buildChromeOptions($desiredCapabilities, $optionsOrProfile, $driverOptions); } else if ($browser === 'firefox') {