python+selenium之——错误:selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executabl...

此时,需要自己配置geckodriver

  1. 下载geckodriver,地址:https://github.com/mozilla/geckodriver/releases
  2. 下载后解压得到geckodriver.exe
  3. 将geckodriver.exe放到Firefox的安装目录下
  4. 将火狐安装目录添加到环境变量path中
  5. 重启IDLE

 

转载于:https://www.cnblogs.com/czhang2-12/p/10254201.html

你可能感兴趣的:(python+selenium之——错误:selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executabl...)