前言:记录启动IE浏览器的报错及解决方法。
错误1:
selenium.common.exceptions.WebDriverException: Message: 'IEDriverServer.exe' executable needs to be in PATH. Please download from http://selenium-release.storage.googleapis.com/index.html and read up at https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver
Exception ignored in: >
解决方法:
根据以上报错提示,点击蓝色链接,下载IEDriverServer.exe ,这里需要注意的是,所下载的IEDriverServer要与selenium版本保持一致!!!
(1)查看selenium版本
打开cmd,输入命令:pip show selenium,可以查看到版本号为2.53.6
(2)下载IEDriverServer.exe
点击报错链接或直接在浏览器输入:http://selenium-release.storage.googleapis.com/index.html,根据selenium对应版本进行下载。
根据需要下载32位或64位
将下载完成后的压缩包解压&