![](/img/trans.png)
[英]How to programmatically turn off quirks mode in IE8 WebBrowser control?
[英]How to programmatically turn off IE's Protected Mode?
我是C#的新手,並且正在使用Selenium Webdriver創建自動化工具。 我想使用c#以編程方式更改IE中的保護模式設置。
任何人都可以通過您的建議幫助我。
也可以通過編程方式更新注冊表以實現此目的。
var options = new InternetExplorerOptions
{
IntroduceInstabilityByIgnoringProtectedModeSettings = true
};
driver = new InternetExplorerDriver(path to the driver.exe", options)
{
/*
* open the supplied URL on the opened instance of the browser
*/
Url = "your url to open"
};
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.