标签:des blog http io ar sp for on 2014
问题报错信息:
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不停的提示 取消本来就不合理的 应该通过代码的方式解决。
以上问题及解决方案转自讨论群。
标签:des blog http io ar sp for on 2014
原文地址:http://www.cnblogs.com/naxiaomao/p/4087067.html