capybara
capybara copied to clipboard
Remove Deprecated Warnings for WebStorage JS methods
Note: This is for issues with Capybara. If you have a howto type question, please ask on the mailing list as requested in the README: http://groups.google.com/group/ruby-capybara
Meta
Capybara Version: 3.40
Driver Information (and browser if relevant): selenium-webdriver 2.53.4 with chrome -->
Expected Behavior
tests run without (too many) deprecation warnings
Actual Behavior
each tests outputs 2 deprecation warnings:
Steps to reproduce
run tests with chrome driver and selenium webdriver >= 4.24
Background & Fix
Selenium deprecated the local_storage and session_storage methods in Version 4.24, see:
https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES
and
https://github.com/SeleniumHQ/selenium/pull/14276/commits/fc6c070e713b02c8488850a0b7ae1d382a6275a6
Will provide a PR which removes the calls to the respective methods.