Problem
This module isnt working after Updating to the new webdriver
Issue
New webdriver doesnt actually support the old structure for chromeoptions.
which caused this to not work anymore.
All because of this code at:
Chrome @ _mobileEmulation
$driver->_capabilities(function($currentCapabilities) use ($mobileEmulation) {
$chromeOptions = new ChromeOptions();
$chromeOptions->setExperimentalOption('mobileEmulation', $mobileEmulation->toArray());
$currentCapabilities[ChromeOptions::CAPABILITY] = $chromeOptions->toArray();
return $currentCapabilities;
});
Solution
Change ChromeOptions::CAPABILITY from
const CAPABILITY = 'chromeOptions';
to
const CAPABILITY = 'goog:chromeOptions';
Problem
This module isnt working after Updating to the new webdriver
Issue
New webdriver doesnt actually support the old structure for chromeoptions.
which caused this to not work anymore.
All because of this code at:
Chrome @ _mobileEmulationSolution
Change ChromeOptions::CAPABILITY from
const CAPABILITY = 'chromeOptions';to
const CAPABILITY = 'goog:chromeOptions';