最新chromedriver对应chrome浏览器支持的版本明细

此更新日志详细记录了ChromeDriver从版本2.23到2.29的主要改进和修复的问题,包括对不同版本Chrome浏览器的支持、解决的错误、性能优化及新增功能等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



http://chromedriver.storage.googleapis.com/2.29/notes.txt


----------ChromeDriver v2.29 (2017-04-04)----------
Supports Chrome v56-58
Resolved issue 1521: Assignment to Object.prototype.$family causes a crash [['Pri-1']]
Resolved issue 1482: Chromedriver cannot handle the alert generated by onbeforeunload event [['OS-All', 'Pri-2']]
Resolved issue 1315: |switch_to.window| does not visually switch tabs [['OS-All', 'Pri-3']]

----------ChromeDriver v2.28 (2017-03-09)----------
Supports Chrome v55-57
Resolved issue 1625: Error: cannot get automation extension on Chrome57+ [['OS-All', 'Pri-1', 'merge-merged-2987']]
Resolved issue 1695: Chrome crashes on Linux32 bot [['OS-Linux', 'Pri-1']]
Resolved issue 1467: A hang occurs when an alert dialog is displayed on Chrome 52+ [['OS-All', 'Pri-2']]
Resolved issue 1688: Exported Netlog with --log-net-log is truncated [['OS-Linux', 'OS-Mac', 'Pri-2']]
Resolved issue 1388: find Elements is failing [['Pri-2']]

----------ChromeDriver v2.27 (2016-12-23)----------
Supports Chrome v54-56
Resolved issue 1637: Getting window handles fails in the presence of shared workers on Chrome 55+ [['OS-All', 'Pri-1']]

----------ChromeDriver v2.26 (2016-12-09)----------
Supports Chrome v53-55
Resolved issue 1607: Chrome 57+ with perf logs enabled fails with "unexpected command response" [['OS-All', 'Pri-1']]
Resolved issue 1502: sendKeys(): SPACE key does not work on Chrome 53 [['OS-All', 'Pri-1']]
Resolved issue 984: Extend ChromeDriver capabilities to cover network throttling feature from Chrome DevTools [['OS-All', 'Pri-2']]
Resolved issue 877: UnhandledAlertException not being propagated upwards [['OS-All', 'Pri-2']]
Resolved issue 1578: Flash plugin blocked after updating Chrome browser [['OS-All', 'Pri-2']]
Resolved issue 1617: Fullscreen command is not recognised [['OS-All', 'Pri-3']]
Resolved issue 839: clear does not work on input type number with string value [['Pri-3']]
Resolved issue 1500: "Could not handle JavaScript dialog" error occurs randomly when accepting confirmation dialogs. [[]]
Resolved issue 1541: find element with empty tag is raising wrong exception in findElement [[]]
Resolved issue 1540: empty tagname value should raise an error when doing findElements [[]]

----------ChromeDriver v2.25 (2016-10-25)----------
Supports Chrome v53-55
Resolved issue 1547: Chromedriver crashes during event Runtime.consoleAPICalled [['OS-All', 'Pri-1']]
Resolved issue 1514: GetLog command times out if an alert is showing [['OS-All', 'Pri-1']]
Resolved issue 1460: "Disable Developer Mode Extensions" exists on Mac, but not Windows [[]]

----------ChromeDriver v2.24 (2016-09-09)----------
Supports Chrome v52-54
Resolved issue 1497: GetLog fails when the current window is closed [['OS-All', 'Pri-0']]
Resolved issue 1495: ChromeDriver crashes with "Check failed: !page_load_strategy_.empty()" [['OS-All', 'Pri-0']]
Resolved issue 1463: SessionNotCreatedException: Runtime.evaluate missing 'wasThrown' on Chrome 54+ [['OS-All', 'Pri-0']]
Resolved issue 1484: SendKeys of a Tab Key has no effect in Chrome 53 [['OS-All', 'Pri-1']]
Resolved issue 1431: GetLog command does not work for Chrome 54+ [['OS-All', 'Pri-1']]
Resolved issue 1411: sendKeys generates events that are missing some fields [['OS-All', 'Pri-1']]
Resolved issue 1451: Chrome 54+ session not created exception: Runtime.executionContextCreated has invalid 'context' [['Pri-1']]
Resolved issue 984: Extend ChromeDriver capabilities to cover network throttling feature from Chrome DevTools [['OS-All', 'Pri-2']]
Resolved issue 1454: Net::ReadTimeout error on launching Canary v54 through RemoteWebDriver [[]]

----------ChromeDriver v2.23 (2016-08-04)----------
Supports Chrome v51-53
Resolved issue 1378: Android 6: Intitialization of Chrome driver fails when Chrome/Webview process is in running (R) state [['OS-Android', 'Pri-1']]
Resolved issue 1379: Chromedriver does not catch all available browser console log entries [['OS-All', 'Pri-2']]



### 检查并确保 ChromeDriver 版本Chrome 浏览器版本兼容 为了确保 ChromeDriverChrome 浏览器版本兼容,需要遵循以下方法: #### 1. 检查当前 Chrome 浏览器版本 在 Windows 系统中,可以通过以下方式检查 Chrome 浏览器版本: - 打开 Chrome 浏览器。 - 点击右上角的菜单按钮(三个点),选择“帮助” -> “关于 Google Chrome”。 - 浏览器将显示当前安装的 Chrome 版本号。例如:`Version 114.0.5735.90 (Official Build) (64-bit)`[^2]。 在 Linux 或 macOS 系统中,可以通过命令行检查版本: ```bash google-chrome --version ``` 或 ```bash chromium --version ``` #### 2. 下载匹配版本ChromeDriver 根据检查到的 Chrome 浏览器版本,下载对应ChromeDriver 版本。可以参考以下资源: - ChromeDriver 官方发布历史记录提供了不同版本支持信息。例如,ChromeDriver v2.39 支持 Chrome v66-68[^1]。 - 对于较新的 Chrome 版本(如 114 及以上),可以访问以下链接获取兼容的 ChromeDriver 版本:[https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json](https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json)[^2]。 #### 3. 验证 ChromeDriverChrome 浏览器版本是否匹配 在代码中启动 Selenium 时,可以通过捕获异常来验证 ChromeDriverChrome 浏览器是否兼容。例如: ```python from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options from selenium.common.exceptions import SessionNotCreatedException try: chrome_options = Options() chrome_options.add_argument("--headless") service = Service('/path/to/chromedriver') # 替换为实际路径 driver = webdriver.Chrome(service=service, options=chrome_options) print("ChromeDriverChrome 浏览器版本兼容!") except SessionNotCreatedException as e: print(f"版本不兼容:{e}") ``` #### 4. 自动化版本管理 为了简化版本管理,可以使用 `webdriver-manager` 库自动下载与当前 Chrome 浏览器版本匹配的 ChromeDriver: ```python from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options chrome_options = Options() chrome_options.add_argument("--headless") service = Service(ChromeDriverManager().install()) driver = webdriver.Chrome(service=service, options=chrome_options) ``` 此方法会根据系统中安装的 Chrome 浏览器版本自动下载合适的 ChromeDriver。 #### 注意事项 即使 ChromeDriverChrome 浏览器版本匹配,某些情况下仍可能出现异常。例如,操作系统内核版本较低可能导致兼容性问题。建议确保操作系统和所有依赖库均为最新版本
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

01Byte空间

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值