python+selenium之——错误:selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.
这是由于firefox没有安装geckodriver,需要自己先下载,与谷歌浏览器的Chormdriver一样
1、下载地址:
https://github.com/mozilla/geckodriver/releases
2、解压后将geckodriver.exe放在firefox安装路径下,并将其放在环境变量path中
3、还是不行就重启一下pycharm
参考:https://www.cnblogs.com/czhang2-12/p/10254201.html
很优秀,快速解决问题