Watir: 应用Watir-Webdriver 访问需要证书的网站情况
2013-08-16 16:51
225 查看
#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']
相关文章推荐
- watir代码移植至watir-webdriver代码时需要注意的一些事项
- 关于安卓手机访问一些网站或者Fiori应用弹出安装证书的提示
- 使用HttpWebRequest访问需要登录的网站-另一种途径
- WatirWebdriver应用实例之自动化下载百度相册
- Watir-Webdriver + Cucumber实现简洁易维护的网站自动化测试
- [置顶] 【Javaweb】Cookie应用——显示用户上次访问网站的时间
- 客户端在浏览网站时收到“HTTP 403.4 - 禁止访问:需要使用 SSL 查看该资源”错误,但是网站没有配置为使用 SSL
- Azure Web应用中设置静态虚拟目录的方法(比如部署Django需要用到)
- 现在很多的手机应用,都可能会直接嵌入一个web页面。这样做的好处:一个是功能更新方便,维护起来容易,只需要维护服务器的页面即可,不需要更新客户端;另一个是功能通用,不仅Android可以用,iOS也可
- 企业在什么样情况下需要改版网站-金瑞帆建站
- 解决默认情况下禁用对此Web服务器的访问
- 内网端口转发与内网映射外网的区别和应用,发布网站访问内网
- visual studio 2012打开提示 未能将网站×××配置为使用 ASP.NET 4.5 和 尚未在Web服务器上注册,您需要手动将Web服务器配置为使用ASP.NET 4.5,问题解决
- Spring - Java/J2EE Application Framework 应用框架 第 16 章 通过Spring使用远程访问和web服务
- dotnet 使用HttpWebRequest向Https Post数据时,需要证书确认的解决方法
- shell统计网站访问情况
- 解决:ASP.NET 4.5尚未在Web服务器上注册。您需要手动将Web服务器配置为使用ASP.NET 4.5,这样您的网站才能正确运行。
- Web服务器证书应用配置手册(四)
- Selenium 应用 WebDriverWait 和 expected_conditions(待验证)
- Win7怎么修改DNS地址解决网站无法访问的情况