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.