报错信息:selenium.common.exceptions.SessionNotCreatedException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the comma
nd line
1、下载Geckodriver
下载地址:https://github.com/mozilla/geckodriver/releases
将下载下来的GeckoDriver.exe放入python安装路径下的Scripts文件夹内
2、安装FireFox浏览器
3、python代码: