Skip to content

Chrome options has changed #653

Closed
Closed

Description

@abidulrmdn

What are you trying to achieve? (Expected behavior)

ChromeWebdriver has been updated lately and this repo is out of date.
So I'm supposed to keep using my modules that are depending on this Webdriver without breaking.

What do you get instead? (Actual behavior)

Modules not working (ex. MobileEmulator nojimage/codeception-mobileemulation#1)

How could the issue be reproduced? (Steps to reproduce)

Just use mobile emulator

Details

This Mobile Emulation Module is doing this:

$driver->_capabilities(function($currentCapabilities) use ($mobileEmulation) {
            $chromeOptions = new ChromeOptions();
            $chromeOptions->setExperimentalOption('mobileEmulation', $mobileEmulation->toArray());
            $currentCapabilities[ChromeOptions::CAPABILITY] = $chromeOptions->toArray();

            return $currentCapabilities;
        });

And because php-webdriver isnt updated with the latest CAPABILITY its making it fail.

Already Created a PR

#652

  • Php-webdriver version: latest
  • PHP version: 7.2
  • Selenium server version: selenium/standalone-chrome:3.141.59-radium
  • Operating system: Linux mint
  • Browser used + version: chrome

Activity

  1. OndraM commented on Nov 10, 2019

    @OndraM
    Collaborator
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions