我是靠谱客的博主 欣喜皮皮虾,这篇文章主要介绍【程序设计】Selenium运行错误的解决方法selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH,现在分享给大家,希望可以做个参考。
文章目录
- selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH
- TypeError: 'FirefoxWebElement' object is not iterable
selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH
安装selenium的话,使用pip即可:pip install selenium
但是安装成功后运行会报错:selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.
主要原因可能是没有安装对应的浏览器驱动程序。
我常使用Firefox,其对应驱动的Github地址
最后
以上就是欣喜皮皮虾最近收集整理的关于【程序设计】Selenium运行错误的解决方法selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH的全部内容,更多相关【程序设计】Selenium运行错误的解决方法selenium.common.exceptions.WebDriverException:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复