#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']

 

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案