51Testing软件测试论坛

标题: python selenium模块使用出错,这个怎么改? [打印本页]

作者: 测试积点老人    时间: 2020-7-13 11:31
标题: python selenium模块使用出错,这个怎么改?
错误代码如下:
  1. File "/usr/local/lib/python2.7/dist-packages/selenium-3.0.0b2-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 65, in __init__
  2. self.service.start()
  3. File "/usr/local/lib/python2.7/dist-packages/selenium-3.0.0b2-py2.7.egg/selenium/webdriver/common/service.py", line 71, in start
  4. os.path.basename(self.path), self.start_error_message)
  5. selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

  6. 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
https://www.codercto.com/a/46569.html  参考下这个
作者: 郭小贱    时间: 2020-7-14 09:48
"'Service' object has no attribute 'process'"
作者: bellas    时间: 2020-7-14 09:52
参考下这个链接https://www.cnblogs.com/susanhonly/p/10636078.html
作者: qqq911    时间: 2020-7-14 10:19
环境变量没配置




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2