Skip to content

Instantly share code, notes, and snippets.

@ivaravko
Created November 12, 2011 13:12
Show Gist options
  • Select an option

  • Save ivaravko/1360501 to your computer and use it in GitHub Desktop.

Select an option

Save ivaravko/1360501 to your computer and use it in GitHub Desktop.
Ignore certificate errors
#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