Skip to content

Commit

Permalink
Hide Selenium deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Nov 22, 2024
1 parent 841e144 commit d1f7639
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

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

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

0 comments on commit d1f7639

Please sign in to comment.