diff --git a/src/FacebookFactory.php b/src/FacebookFactory.php index 806c0019..54a0069e 100644 --- a/src/FacebookFactory.php +++ b/src/FacebookFactory.php @@ -37,6 +37,13 @@ public function buildDriver(array $config) // Merge capabilities $extraCapabilities = $config['capabilities']['extra_capabilities']; unset($config['capabilities']['extra_capabilities']); + + // PATCH: Disable W3C mode in chromedriver until we have capacity to actively adopt it + $extraCapabilities['chromeOptions'] = array_merge( + $extraCapabilities['chromeOptions'] ?? [], + ['w3c' => false] + ); + $capabilities = array_replace($this->guessCapabilities(), $extraCapabilities, $config['capabilities']); // Build driver definition