-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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';
Metadata
Metadata
Assignees
Labels
No labels