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 warnings for Chrome drivers #46

Conversation

dan-jensen
Copy link
Contributor

Since PR #45, a warning is being output to console when using selenium-webdriver 4+:
:options as a parameter for driver initialization is deprecated. This
implements the :capabilities array as instructed, and makes a
requirement of selenium-webdriver 4+ because 3 does not support the
capabilities syntax.

Related links:

Using the capabilities syntax with selenium-webdriver 3.x (for example 3.142.7, the latest 3.x) raises an exception:

ArgumentError:
  unknown option: {:capabilities=>[#<Selenium::WebDriver::Chrome::Options:0x00007ffc4c0a2df0 @args=#<Set: {"--no-sandbox", "--headless"}>, @binary=nil, @prefs={}, @extensions=[], @options={}, @emulation={}, @detach=nil, @profile=nil, @encoded_extensions=[]>]}

A warning was being output to console when using selenium-webdriver 4+:
":options as a parameter for driver initialization is deprecated." This
implements the ":capabilities" array as instructed, and makes a
requirement of selenium-webdriver 4+ because 3 does not support the
capabilities syntax.
@dan-jensen
Copy link
Contributor Author

@dillonhafer this is a follow-up to PR #45, to eliminate the deprecation warning that appears when using selenium-webdriver 4.x.

@dillonhafer dillonhafer merged commit 63d790a into hashrocket:master Feb 8, 2022
@dan-jensen dan-jensen deleted the fix-deprecation-warning-about-options-in-chrome-driver-declarations branch June 19, 2023 21:14
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.

2 participants