Skip to content

Commit

Permalink
Merge pull request #6 from creative-commoners/pulls/master/disable-w3…
Browse files Browse the repository at this point in the history
…c-mode

FIX Explicitly disable W3C mode for Chrome
  • Loading branch information
Garion Herman authored Feb 25, 2020
2 parents e7fed61 + 3ac73ea commit 19cc9d3
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 19cc9d3

Please sign in to comment.