Skip to content

Commit e071d42

Browse files
committed
Hide Selenium deprecation warnings
Upstream issue: teamcapybara/capybara#2779
1 parent 73f90a9 commit e071d42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
capture_js_log = ENV.fetch('CAPTURE_JS_LOG', 'false').casecmp?('true')
4040
Selenium::WebDriver.logger.level = :debug if capture_js_log
41+
Selenium::WebDriver.logger.ignore(:clear_local_storage, :clear_session_storage)
4142

4243
browser_options = ::Selenium::WebDriver::Firefox::Options.new
4344
browser_options.add_argument('-headless') if ENV.fetch('HEADLESS', 'true').casecmp?('true')

0 commit comments

Comments
 (0)