我目前是 python 和 PyCharm 的新手我在 Windows 上使用最新版本的 chrome 我在運行命令時不斷收到此訊息(見下文):
driver.get("http://www.google.com/")
錯誤:
Message: session not created: This version of ChromeDriver only supports Chrome version 99
Current browser version is 95.0.4638.54 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
uj5u.com熱心網友回復:
此錯誤訊息...
Message: session not created: This version of ChromeDriver only supports Chrome version 99
Current browser version is 95.0.4638.54 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
...暗示ChromeDriver無法啟動/產生新的瀏覽背景關系,即谷歌瀏覽器會議。
您的主要問題是您使用的二進制檔案版本之間的不兼容,如下所示:
- 您正在使用chromedriver=99.0
- chromedriver=99.0的發行說明清楚地提到了以下內容:
支持 Chrome 版本 99
- 但是您使用的是chrome=95.0
所以chromedriver=99.0和chrome=95.0之間存在明顯的不匹配
解決方案
確保這件事:
- ChromeDriver已更新到當前的ChromeDriver v99.0級別。
- Chrome 瀏覽器已更新為當前chrome=99.0(根據chromedriver=99.0 發行說明)。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/449115.html
上一篇:精靈圖和字體圖示的概念
