# 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';`
Activity
abidulrmdn commentedon Jul 19, 2019
Oh, my bad.. just realized that
ChromeOptions::CAPABILITYis in this lib https://github.com/facebook/php-webdriver/tree/community/lib/Chrome