Created
November 12, 2011 13:12
-
-
Save ivaravko/1360501 to your computer and use it in GitHub Desktop.
Ignore certificate errors
This file contains hidden or 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
| #encoding: utf-8 | |
| require 'selenium-webdriver' | |
| include Selenium | |
| capabilities = WebDriver::Remote::Capabilities.chrome(:native_events => true) | |
| capabilities['chrome.switches'] = ["--ignore-certificate-errors"] | |
| driver = WebDriver.for(:remote, | |
| :desired_capabilities => capabilities, | |
| :url => "http://192.168.1.44:4444/wd/hub" | |
| ) | |
| driver.navigate.to "https://trunk.plus1.oemtest.ru/" | |
| puts driver.title | |
| driver.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment