diff --git a/src/FacebookFactory.php b/src/FacebookFactory.php index 73324b3f..9aab43f1 100644 --- a/src/FacebookFactory.php +++ b/src/FacebookFactory.php @@ -39,10 +39,12 @@ public function buildDriver(array $config) unset($config['capabilities']['extra_capabilities']); // PATCH: Disable W3C mode in chromedriver until we have capacity to actively adopt it - $extraCapabilities['chromeOptions'] = array_merge( - isset($extraCapabilities['chromeOptions']) ? $extraCapabilities['chromeOptions'] : [], - ['w3c' => false] - ); + if (!empty($config['capabilities']['browser']) && $config['capabilities']['browser'] != WebDriverBrowserType::IE) { + $extraCapabilities['chromeOptions'] = array_merge( + isset($extraCapabilities['chromeOptions']) ? $extraCapabilities['chromeOptions'] : [], + ['w3c' => false] + ); + } $capabilities = array_replace($this->guessCapabilities(), $extraCapabilities, $config['capabilities']);