Skip to content

This isnt working on the new webdriver #1

Description

@abidulrmdn

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions