#Suppose we will access an SVN net
require 'watir-webdriver'
b = Watir::Browser.new :chrome
b.goto 'https://admin:password@yourwebsite.com'

#Firefox Deal with Certification:
profile = Selenium::WebDriver::Firefox::Profile.new 
profile.assume_untrusted_certificate_issuer = false
b = Watir::Browser.new :firefox, :profile => profile

#Chrome Deal with Certification:
Watir::Browser.new :chrome, :switches => ['--ignore-certificate-errors']

 

相关文章: