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

clear_local_storage and clear_session_storage are deprecated in Selenium #2779

Open
excelsior opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@excelsior
Copy link

The clear_local_storage and clear_session_storage methods are deprecated in the latest version of Selenium. Capybara calls them, e.g. https://github.com/teamcapybara/capybara/blob/3.40.0/lib/capybara/selenium/driver.rb#L371

Expected Behavior

No deprecation warnings.

Actual Behavior

WARN Selenium [:clear_local_storage] [DEPRECATION] clear_local_storage is deprecated and will be removed in a future release. 
WARN Selenium [:clear_session_storage] [DEPRECATION] clear_session_storage is deprecated and will be removed in a future release. 

Steps to reproduce

Run any Capybara spec which uses Selenium 4.25 where the session is reset.

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

No branches or pull requests

1 participant