Skip to content

Instantly share code, notes, and snippets.

@Lackoftactics
Created March 5, 2018 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lackoftactics/05286ca988ddb7b77fe9704aa52a63fd to your computer and use it in GitHub Desktop.
Save Lackoftactics/05286ca988ddb7b77fe9704aa52a63fd to your computer and use it in GitHub Desktop.
Capybara easier debugging, look on browser
Capybara.server_port = 9887
Capybara.app_host = "http://#{ENV['APP_HOST']}:#{Capybara.server_port}"
Capybara.always_include_port = true
Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(app, browser: :chrome)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment