Skip to content

Instantly share code, notes, and snippets.

@goodfeel
Created November 18, 2014 01:31
Show Gist options
  • Save goodfeel/39f072d8c344c97124c2 to your computer and use it in GitHub Desktop.
Save goodfeel/39f072d8c344c97124c2 to your computer and use it in GitHub Desktop.
Capybara + Poltergeist failed to visit a path in force SSL environment
Capybara.register_driver :poltergeist_ssl do |app|
Capybara::Poltergeist::Driver.new(app, js_errors: false, timeout: 5000, phantomjs_options: ['--ignore-ssl-errors=yes', '--ssl-protocol=any'])
end
Capybara.default_driver = :poltergeist_ssl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment