Created
October 14, 2019 13:50
-
-
Save pabuisson/1e57737f2a6f5b94151ee43bee6882c0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 :https_chrome do |app| | |
browser_options = Selenium::WebDriver::Chrome::Options.new | |
browser_options.add_argument('allow-insecure-localhost') # Ignore TLS/SSL errors on localhost | |
browser_options.add_argument('ignore-certificate-errors') # Ignore certificate related errors | |
Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment