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,再次运行即可;

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM