环境信息:Windows7 64位 + python 3.6.5 + selenium 3.11.0 +pyCharm
1 #coding=utf-8 2 from selenium import webdriver 3 driver=webdriver.Firefox()
解决方法:
1.下载geckodriver,路径:https://github.com/mozilla/geckodriver/releases
2.解压后无需安装,将其解压路径配置到环境变量PATH
【bugRecord2】selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
原文地址:https://www.cnblogs.com/yllil/p/9011591.html
时间: 2024-10-13 05:26:34