1. 關(guān)閉Chrome瀏覽器自動(dòng)更新
教程鏈接https://www.llqzj.net/chrome/11462.html
2. 下載對(duì)應(yīng)版本Chrome驅(qū)動(dòng)
下載地址:https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location/#download-the-driver
如果瀏覽器已自動(dòng)更新到最新版本,可能無法找到對(duì)應(yīng)的Chrome驅(qū)動(dòng),可下載對(duì)應(yīng)的測(cè)試版本:https://googlechromelabs.github.io/chrome-for-testing/
3. 將驅(qū)動(dòng)程序(chromedriver.exe)放置到Python安裝路徑中即可
如:C:\Python38