美文网首页我爱编程
解决selenium报错:The path to the dri

解决selenium报错:The path to the dri

作者: 秋兔子的玩具 | 来源:发表于2018-06-19 14:54 被阅读0次

参考:https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver

1.需要在selenium下载专门针对ID的驱动:

image.png

2.需要在实例化之前加入:

System.setProperty("webdriver.ie.driver", "D:\\SETUPS\\IEDriverServer_x64_2.53.1\\IEDriverServer.exe"); // 必须加入
WebDriver driver = new InternetExplorerDriver();

3.需要调整IE浏览器的安全选项,所有区域每一个复选框打上勾;

image.png

4.其他问题,请参考:

http://toolsqa.com/selenium-webdriver/challenges-to-run-selenium-scripts-with-ie-browser/

相关文章

网友评论

    本文标题:解决selenium报错:The path to the dri

    本文链接:https://www.haomeiwen.com/subject/wpvaeftx.html