Skip to content

clear_local_storage and clear_session_storage are deprecated in Selenium #2779

@excelsior

Description

@excelsior

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions