chrome 瀏覽器與chromedriver 對應關系以及 對應的驅動下載


1、如果運行程序報如下錯誤

E   selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 77

2、解決方法:

上述錯誤的 意思是 本地的chrome 版本與chromedriver  不對應

首先需要確定本地的chrome 的版本

 

 

 

3、到地址 http://npm.taobao.org/mirrors/chromedriver

下載對應的 版本

 版本信息說明

(1)、

chromedriver_linux64.zip      適應於 linux 版本
chromedriver_mac64.zip 適應於 mac版本
chromedriver_win32.zip        適應於windows 版本

notes.txt 具體的版本對應關系

---------ChromeDriver 81.0.4044.138 (2020-05-05)---------
Supports Chrome version 81
Resolved issue 1049: Attempting to move mouse to corner of page in Chrome 41 throws WebDriverException: unknown error: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' [Pri-2]
Resolved issue 3153: ChromeDriver doesn't return iframe cookies [Pri-3]
Resolved issue 3237: Returned value cannot be converted to Boolean: {} on isDisplayed() method. ChromeDriver 78 [Pri-]
Resolved issue 3252: Getting org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status [Pri-]
Resolved issue 3291: Chromedriver is not returning spec compliant error code for timeouts [Pri-2]
Resolved issue 3301: ChromeDriver Unexpected Slow response time on NewSession Command [Pri-2]
Resolved issue 3312: Fail to set page load timeout time [Pri-2]
Resolved issue 3316: ChromeDriver unable to connect to DevTools due to IPv4 vs IPv6 mismatch [Pri-2]
Resolved issue 3336: WebDriver 80.0.3987.16 can't open Chrome on Linux [Pri-1]
Resolved issue 3375: Chromedriver v80 hangs on getPageSource on some sites [Pri-1]
Resolved issue 3383: ChromeDriver 80+ on Windows seems to exit or stall on certain element or click commands [Pri-1]
Resolved issue 3421: chromedriver 81. Driver returns Cyrillic text without styles [Pri-2]
Resolved issue 3422: GetElementText breaks with prototype 1.6.0.3 and chromedriver 81 [Pri-]

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM