测试积点老人 发表于 2020-7-13 11:31:27

python selenium模块使用出错,这个怎么改?

错误代码如下:
File "/usr/local/lib/python2.7/dist-packages/selenium-3.0.0b2-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 65, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium-3.0.0b2-py2.7.egg/selenium/webdriver/common/service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x7f753ad53390>> ignored是不是没有安装什么啊?

海海豚 发表于 2020-7-14 09:36:57

https://www.codercto.com/a/46569.html参考下这个

郭小贱 发表于 2020-7-14 09:48:06

"'Service' object has no attribute 'process'"

bellas 发表于 2020-7-14 09:52:43

参考下这个链接https://www.cnblogs.com/susanhonly/p/10636078.html

qqq911 发表于 2020-7-14 10:19:00

环境变量没配置
页: [1]
查看完整版本: python selenium模块使用出错,这个怎么改?