Skip to content

Instantly share code, notes, and snippets.

@tgaff
Created July 2, 2015 20:15
Show Gist options
  • Save tgaff/b0252c1ee8fc4ad17ae1 to your computer and use it in GitHub Desktop.
Save tgaff/b0252c1ee8fc4ad17ae1 to your computer and use it in GitHub Desktop.
capybara driver for chrome with mods for chromedriver issue 1081 to allow viewing pdf
Capybara.register_driver :chrome_custom do |app|
caps = Selenium::WebDriver::Remote::Capabilities.chrome(
"chromeOptions" => {
"excludeSwitches" => [ "test-type", "ignore-certificate-errors" ],
}
)
Capybara::Selenium::Driver.new(app, :browser => :chrome, :desired_capabilities => caps)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment