刚学python+selenium,这个是什么错误啊
Traceback(mostrecentcalllast):File"C:/Users/Administrator/Desktop/baidu.py",line3,in<...
Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/baidu.py", line 3, in <module>
browser = webdriver.Firefox()
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 140, in __init__
self.service.start()
File "C:\Python27\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
在pycharm上面运行提示这个 展开
File "C:/Users/Administrator/Desktop/baidu.py", line 3, in <module>
browser = webdriver.Firefox()
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 140, in __init__
self.service.start()
File "C:\Python27\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
在pycharm上面运行提示这个 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
展开全部
说出你的selenium版本、firebox版本,目前本人在selenium3.x下还没找到合适的浏览器
更多追问追答
追问
selenium版本3.0.2
Python版本2.7.12
firebox版本40.0.3
追答
反正我目前3.x还没用过能支持的浏览器,退了吧,我用selenium2.45,firebox32,给你selenium的链接:
http://pan.baidu.com/s/1mhYykSo
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询