Skip to content

Instantly share code, notes, and snippets.

@pabuisson
Created October 14, 2019 13:50
Show Gist options
  • Save pabuisson/1e57737f2a6f5b94151ee43bee6882c0 to your computer and use it in GitHub Desktop.
Save pabuisson/1e57737f2a6f5b94151ee43bee6882c0 to your computer and use it in GitHub Desktop.
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