Watir Webdriver对browser的certificate的操作

上一篇 / 下一篇  2013-01-27 16:26:35 / 个人分类:测试

对于弹出非trust的certificate进行处理

ie,可以当alert窗口进行直接处理

对于ff来说,直接屏蔽即可

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


同理 chrome也可以屏蔽,不做验证

Watir::Browser.new :chrome, :switches => ['--ignore-certificate-errors']



TAG:

 

评分:0

我来说两句

日历

« 2024-04-29  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 151236
  • 日志数: 185
  • 文件数: 6
  • 建立时间: 2007-08-06
  • 更新时间: 2015-01-06

RSS订阅

Open Toolbar