IE 的 Selenium 脚本
我在运行 Internet Explorer 9 的 selenium 脚本时遇到此错误。
Exception in thread "main" org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information); duration or timeout: 193 milliseconds
I got this error , while running selenium script for Internet Explorer 9.
Exception in thread "main" org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information); duration or timeout: 193 milliseconds
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
有一个错误报告讨论了此问题:http://code.google。 com/p/selenium/issues/detail?id=1795
There is a bug report discussing this issue: http://code.google.com/p/selenium/issues/detail?id=1795
不要通过代码来做到这一点,这就是原因
http://jimevansmusic.blogspot.com /2012/08/youre-doing-it-wrong-protected-mode-and.html
Don't do it through code here is why
http://jimevansmusic.blogspot.com/2012/08/youre-doing-it-wrong-protected-mode-and.html
HSSFWorkbook wb = new HSSFWorkbook(file);- .xsl 文件
HSSFSheet sh = wb.getSheet("Sheet1");// Sheet1 需要替换为实际的选项卡名称
System.out.println(sh.getRow(0).getCell(0).getStringCellValue()); // 给出数据。需要相应更新行号和列号
HSSFWorkbook wb = new HSSFWorkbook(file);- .xsl file
HSSFSheet sh = wb.getSheet("Sheet1");// Sheet1 need to be replaced with actual tab name
System.out.println(sh.getRow(0).getCell(0).getStringCellValue()); // Gives the data. need to update the row and column numbers accordingly