标签:
错误代码如下:
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
下载geckodriver,下不到的到我的之前的文章里有链接。
Windows用户当然是加这个东西到path环境变量里,
Mac用户看大家都遇到这个问题了,没解决,
把这个geckodriver放在某个位置,然后
【selenium 3】 Mac 下测试环境搭建 Firefox 47+ gecko driver Mac
标签:
原文地址:http://www.cnblogs.com/jin-wen-xin/p/5975133.html