Selenium,解决Message: 'geckodriver' executable needs to be in PATH

Windows系统解决办法如下:

Firefox:

1、下载geckodriver.exe:
下载地址:https://github.com/mozilla/geckodriver/releases
请根据系统版本选择下载;(如Windows 64位系统)
2、下载解压后将getckodriver.exe复制到浏览器安装目录,如:C:\Program Files (x86)\Mozilla Firefox,然后目录路径添加到环境变量path下;再把geckodriver复制到pythonan安装目录,如:C:\Users\Wuhl\AppData\Local\Programs\Python\Python35

chrome:

1、下载chromedriver

驱动的下载地址如下:
http://chromedriver.storage.googleapis.com/index.html

chromedriver与chromed版本对应

技术分享

2、下载解压后将chromedriver.exe复制到浏览器安装目录,如:C:\Program Files (x86)\Google\Chrome\Application(可能不需要这一步),然后目录路径添加到环境变量path下(可能不需要这一步);再把chromedriver.exe复制到pythonan安装目录,如:C:\Users\Wuhl\AppData\Local\Programs\Python\Python35

Selenium,解决Message: ‘geckodriver’ executable needs to be in PATH

标签:alt chrome pat sel bsp 安装 解决办法 windows data

原文地址:http://www.cnblogs.com/wuhl-89/p/7779053.html

你可能感兴趣的:(Selenium,解决Message: 'geckodriver' executable needs to be in PATH)