Created
July 2, 2015 20:15
-
-
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
This file contains 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 :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