Selenim 3.0 + FireFox 启动报错:'geckodriver' executabl needs to be in PATH

 

driver=webdriver.Firefox()

运行报错:

Exception AttributeError: "'Service' object has no attribute 'process'" in <boun
d method Service.__del__ of <selenium.webdriver.firefox.service.Service object a
t 0x028940B0>> ignored

selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executabl needs to be in PATH.

 

 

 

Path: https://github.com/mozilla/geckodriver/releases

下载后,将geckodriver.exe复制到C:\Program Files (x86)\mozilla firefox目录下;

并在环境变量Path中添加路径:C:\Program Files (x86)\mozilla firefox;

重启cmd,再次运行即可;

 

posted @ 2016-09-21 15:44  zp_Alex  阅读(2529)  评论(0编辑  收藏  举报