Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use capabilities rather than options to resolve deprecation #44

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

kevindew
Copy link
Member

Since selenium-webdriver version 4.0.0.alpha6 the options keyword
argument has been deprecated for capabilities.

To cater for this we have switched our keyword to use that and bumped
the minimum version of Capybara and Selenium Webdriver to be the minimum
version that these arguments will be supported for (to avoid any
conditionals as per Capybara 1

This resolves #42

Since selenium-webdriver version 4.0.0.alpha6 the options keyword
argument has been deprecated for capabilities.

To cater for this we have switched our keyword to use that and bumped
the minimum version of Capybara and Selenium Webdriver to be the minimum
version that these arguments will be supported for (to avoid any
conditionals as per Capybara [1]

[1]: https://github.com/teamcapybara/capybara/blob/f7ab0b5cd5da86185816c2d5c30d58145fe654ed/lib/capybara/registrations/drivers.rb#L21-L23
@kevindew kevindew force-pushed the fix-selenium-deprecation branch from 221bed8 to c4d4be8 Compare March 29, 2022 12:14
@kevindew kevindew requested a review from ollietreend March 29, 2022 12:15
@kevindew kevindew merged commit a7b0850 into main Apr 4, 2022
@kevindew kevindew deleted the fix-selenium-deprecation branch April 4, 2022 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation notices are being emitted by Selenium 4
2 participants