Created
December 2, 2017 00:19
-
-
Save weilandia/40b90f080456c89595b1d1143b96c46f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Capybara.register_driver :chrome do |app| | |
Capybara::Selenium::Driver.new(app, browser: :chrome) | |
end | |
Capybara.register_driver :headless_chrome do |app| | |
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( | |
chromeOptions: { args: %w(headless disable-gpu) } | |
) | |
Capybara::Selenium::Driver.new(app, browser: :chrome, desired_capabilities: capabilities) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment