Troubleshoot: Suppress Capybara Selenium driver warning
11 March 2022 (Updated 11 March 2022)
This annoying warning:
2021-11-21 15:58:23 WARN Selenium [DEPRECATION] [:browser_options] :options as a parameter for driver initialization is deprecated. Use :capabilities with an Array of value capabilities/options if necessary instead.
can be suppressed by adding the following to your rails_helper.rb
:
Selenium::WebDriver.logger.ignore(:browser_options)
Sources
Tagged:
Rails testing
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment