selenium.common.exceptions.WebDriverException: Message: newSession的解决方案
解决方案如下:
1、更新pip至最新
2、更新selenium至最新
3、下载 geckodriver最新版,放至python.exe的目录下吧。之前查阅目录有人说放在安装库目录下,本人亲自试过已经不行了(折腾了好久)。
下载链接:https://github.com/mozilla/geckodriver/releases
参考链接:https://blog.csdn.net/m0_37637455/article/details/86307706