Skip to content

Commit

Permalink
FIX Explicitly disable W3C mode for Chrome
Browse files Browse the repository at this point in the history
Works around newer Chrome releases enabling W3C mode by default.
See webdriverio/webdriverio#4073
  • Loading branch information
Garion Herman committed Feb 25, 2020
1 parent e7fed61 commit 3ac73ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/FacebookFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ac73ea

Please sign in to comment.