Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 148, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
一切都已安装。当我在终端中键入firefox时,它完全打开firefox浏览器。帮帮我!!
答案 0 :(得分:1)
用于Selenium的FirefoxDriver已停产。你必须使用MarionetteDriver / geckodriver。