自动化测试:IE保护模式问题

问题报错信息:

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. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.17 seconds

 

可在IE选项中修改,如图:

 

或可以修改代码,在代码中加入

DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);

很多人测试IE的时候 总是把那个勾选取消 ie不停的提示  取消本来就不合理的   应该通过代码的方式解决。

 

以上问题及解决方案转自讨论群。

posted on 2014-11-10 14:14  N小超  阅读(477)  评论(0编辑  收藏  举报

导航