Skip to content

Fix deprecation warning with Chrome capabilities - #54

Open
dan-jensen wants to merge 1 commit into
hashrocket:masterfrom
dan-jensen:update-chrome-capabilities-syntax
Open

Fix deprecation warning with Chrome capabilities#54
dan-jensen wants to merge 1 commit into
hashrocket:masterfrom
dan-jensen:update-chrome-capabilities-syntax

Conversation

@dan-jensen

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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