Internet Explorer保护模式错误 [英] Internet Explorer protected mode error

查看:982
本文介绍了Internet Explorer保护模式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的code在Visual Studio中使用硒webdriver的2.24.0。我的测试框架我使用的是NUnit的。我的code的工作只是罚款(负载分差的浏览器,驱动网站),直到2.24.0版本发布。

My code in Visual studio is using selenium webdriver 2.24.0. My testing framework I'm using is Nunit. My code worked just fine(loading diff. browsers, driving the websites) until version 2.24.0 was released.

我添加了新的IE独立服务器到我的项目。

I added the new IE standalone server to my project.

现在,每当我跑我的code NUnit的遇到此错误消息。

Now whenever I run my code NUnit encounters this error message.

 FirstSeleniumTest.SeleniumTest.TestGoogle:
SetUp : System.InvalidOperationException : Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

然后命令提示符弹出与此有关。

Then Command prompt pops up with this.

Started InternetExplorerDriver server (64-bit)
2.24.0.0
Listening on port 50329

我禁用保护模式在我的IE浏览器。仍然没有运气。

I disabled protected mode on my IE. Still no luck.

我怎样才能让我的code回到正确的webdriving?

How can I get my code back to proper webdriving?

推荐答案

您应该确保,即保护模式已启用还是对的所有的4安全区域(Int​​ernet,本地Intranet,受信任的站点禁用,受限制的站点)。 换句话说,设定值应是相同的所有的安全区域。

You should ensure, that protected mode is either enabled or disabled for all 4 security zones (Internet, Local intranet, Trusted sites, Restricted sites). In other words, the setting value should be the same for all security zones.

这篇关于Internet Explorer保护模式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆