Watir: 应用Watir-Webdriver 访问需要证书的网站情况

#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']
原文地址:https://www.cnblogs.com/autotest/p/3262512.html