You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Chrome 115.0.5790.99升级后,Python webdrivermanager调用install()报错

Chrome 115 版本与 webdrivermanager 3.8.6 兼容问题

Chrome浏览器升级至115.0.5790.99后,使用Python的webdrivermanager库(版本3.8.6)管理Chrome驱动时,调用ChromeDriverManager().install()函数出现错误:

不存在对应URL的驱动:https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790

问题复现步骤

  • 将Google Chrome升级至版本115.0.5790.99
  • 执行以下Python代码:
from webdriver_manager.chrome import ChromeDriverManager

driver_path = ChromeDriverManager().install()

异常截图

捕获的异常

解决方法

Chrome从115版本开始,官方调整了驱动的下载地址,旧版本的webdrivermanager(3.8.6)未适配新地址,可通过以下两种方式解决:

  1. 升级webdrivermanager到最新版本
    执行命令更新库:

    pip install --upgrade webdriver-manager
    

    新版本已适配Chrome 115+的驱动下载源,升级后重新运行代码即可正常获取驱动。

  2. 手动指定驱动下载地址(临时方案)
    若暂时无法升级库,可手动指定新的驱动下载源:

    from webdriver_manager.chrome import ChromeDriverManager
    from webdriver_manager.core.driver_cache import DriverCacheManager
    from webdriver_manager.core.os_manager import ChromeType
    
    driver_path = ChromeDriverManager(
        chrome_type=ChromeType.GOOGLE,
        cache_manager=DriverCacheManager(),
        url="https://googlechromelabs.github.io/chrome-for-testing/"
    ).install()
    

内容的提问来源于stack exchange,提问作者Christian Rubio

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 15:12:54