Skip to content

Selenium 4 support #373

@AlexSkrypnyk

Description

@AlexSkrypnyk

Selenium 2 was released 7 years ago.

Official Selenium docker images with inbuilt Chrome starting version 112 dropped support for non-W3C compliant API. This means that it is no longer possible to use this Selenium 2 driver as-is with newer versions of Selenium.

Non-W3C session creation example:

curl -X POST http://localhost:4444/wd/hub/session -d '{"desiredCapabilities":{"browserName":"chrome"}}' -H "Content-Type: application/json"

W3C session creation example:

curl -X POST http://localhost:4444/wd/hub/session -d '{"capabilities": {"firstMatch": [{"browserName": "chrome"}]}}' -H "Content-Type: application/json"

As one can see, there are no more desiredCapabilities and the config structure was changed.

If one uses friends-of-behat/mink-extension, version 2.7.3 added support to provide Selenium 4 driver support.

There is now a fork of this repo into Selenium 4 Driver - https://github.com/eDiasoft/MinkSelenium4Driver

Currently, there are many projects keep using the old Selenium 2 setup because it is not clear what the upgrade path looks like.

@stof
Could you please summarise what the community should expect from this specific repository - will it be updating to support Selenium 4 (will the name stay?), or will the community need to look at alternatives (like the fork specified above)? Or such compatibility layer lies in another package, like instaclick/web-driver?

Thank you

p.s. Sorry to tag you like this and raising it here. It took me about half of day to get my head around all these dependencies, deprecations and inter-version configuration changes. There is not much information about all of this in one place. I was hoping you could share you knowledge about this here so that others would not have to search through many many places. Thanks again

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