selenium学习之旅
第一天学习中遇到问题:selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.
原因:浏览器和selenium版本不适配的原因
之后又遇到chromedriverde 问题只需下载即可解决chromedriver
geckodriver问题下载链接geckodriver
下载后解压放到python目录下的scripts中
本人电脑安装的版本好,亲测都适配:
火狐浏览器版本72,selenium版本3.141.0 ,
谷歌浏览器版本91.0.4472.124 chromedriver版本91.0.4472.101