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

Fix deprecation warning with Chrome capabilities #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dan-jensen
Copy link
Contributor

@dan-jensen dan-jensen commented Jun 19, 2023

In selenium-webdriver 4.8.0, the :capabilities argument for Capybara::Selenium::Driver#new was deprecated and now raises a warning.

This updates the Capybara Chrome driver registrations to use updated syntax that does not raise a warning.

Additional details:

  • Example warning: "WARN Selenium [:capabilities] [DEPRECATION] The :capabilities parameter for Selenium::WebDriver::Chrome::Driver is deprecated. Use :options argument with an instance of Selenium::WebDriver::Chrome::Driver instead. "
  • Origin: selenium-webdriver 4.8.0 included change to "Deprecate support for :capabilities for local drivers".
  • Revert: This reverts some of PR #45 (which I submitted 2022-02-07), because apparently selenium-webdriver reversed itself on using capabilities (it previously output a warning ":options as a parameter for driver initialization is deprecated.").

In selenium-webdriver 4.8.0, the `:capabilities` argument for
Capybara::Selenium::Driver#new was deprecated and now raises a warning.

This updates the Capybara Chrome driver registrations to use updated
syntax that does not raise a warning.
@dan-jensen
Copy link
Contributor Author

@dillonhafer just want to draw attention to this other PR from June. Hopefully another easy merge.

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.

1 participant