瀏覽器版本過高,驅動比較低導致的,需要下載和當前瀏覽器版本對應的驅動:
chromedriver的版本一定要與Chrome的版本一致,不然就不起作用。
有兩個下載地址:
1、http://chromedriver.storage.googleapis.com/index.html
2、https://npm.taobao.org/mirrors/chromedriver/
找到版本:http://chromedriver.storage.googleapis.com/index.html?path=91.0.4472.19/
下載后把文件chromedriver放到兩個位置:一個是google瀏覽器的安裝位置:C:\Program Files (x86)\Google\Chrome\Application
一個是python3安裝位置:C:\Python36