From 3ac73ea77b63bc081a1ed675389ae8fb88285f9b Mon Sep 17 00:00:00 2001 From: Garion Herman Date: Tue, 25 Feb 2020 13:34:53 +1300 Subject: [PATCH] FIX Explicitly disable W3C mode for Chrome Works around newer Chrome releases enabling W3C mode by default. See https://github.com/webdriverio/webdriverio/issues/4073 --- src/FacebookFactory.php | 7 +++++++ 1 file changed, 7 insertions(+) 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