> raise exception_class(message, screen, stacktrace)
E selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at localhost:9222
E from session not created: This version of ChromeDriver only supports Chrome version 100
E Current browser version is 102.0.5005.63
强调:谷歌浏览器更新版本号后,webdriver版本也得更新跟谷歌浏览器一样的版本号
复用已用的浏览器,只支持谷歌浏览器版本号是100的
谷歌版本号100的安装包:
链接:https://pan.baidu.com/s/15ZGvWoLflD_jKHp8WWYAXw
提取码:hpyn
webdriver版本链接:
https://registry.npmmirror.com/binary.html?path=chromedriver/
谷歌浏览器图标,鼠标右击打开文件所在的位置,如下图所示: