Enjoy faster testing!
selenium-webdriver;brew install chromedriver on macOS;apt-get install chromium-chromedriver on Debian/Ubuntu Linux.driver to your spec/support/capybara.rb, spec/spec_helper.rb, or spec/rails_helper.rb:Capybara.javascript_driver = :selenium_chrome_headlessCapybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new app, browser: :chrome,
options: Selenium::WebDriver::Chrome::Options.new(args: %w[headless disable-gpu])
end
Capybara.javascript_driver = :chromeWARN Selenium [DEPRECATION] :args or :switches is deprecated. Use Selenium::WebDriver::Chrome::Options#add_argument instead.iphone driver, which was passing args in the old way and turned out to be the reason why I was getting the warning.