Webdriver - IE security certificate when access https

本文介绍了两种处理Internet Explorer浏览器访问HTTPS页面时出现的安全证书警告的方法:一是使用JavaScript点击覆盖链接;二是更新注册表设置以避免弹出证书警告。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Webdriver - IE security certificate when access https

作者: Max.Bai

时间: 2014/08



How to handle the security certificate when IE access https page?


1. use js to click

  1. IWebDriver driver = new InternetExploreDriver();  
  2. driver.Url("Site");  
  3. driver.Navigate().GoToUrl("javascript:document.getElementById('overridelink').click()");  
IWebDriver driver = new InternetExploreDriver();
driver.Url("Site");
driver.Navigate().GoToUrl("javascript:document.getElementById('overridelink').click()");

2. Update reg make the certificate not popup


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_ERROR_PAGE_BYPASS_ZONE_CHECK_FOR_HTTPS_KB954312



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值