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

Shush deprecation warning when opening new window on Selenium WebDriver 4 #2501

Merged
merged 1 commit into from
Oct 23, 2021
Merged

Shush deprecation warning when opening new window on Selenium WebDriver 4 #2501

merged 1 commit into from
Oct 23, 2021

Conversation

georgeclaghorn
Copy link
Contributor

The warning:

WARN Selenium [DEPRECATION] [:new_window] Manager#new_window is deprecated. Use TargetLocator#new_window instead. e.g., `driver.switch_to.new_window(:tab)`

TargetLocator#new_window is added in Selenium WebDriver 4. Prefer it when available to shush the warning.

References SeleniumHQ/selenium@d047b4d.

@twalpole twalpole merged commit 554c2ac into teamcapybara:master Oct 23, 2021
@twalpole
Copy link
Member

Thanks!

@georgeclaghorn georgeclaghorn deleted the selenium-webdriver-4-new-window-deprecation branch October 23, 2021 23:49
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