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

求适配Chrome 125版本的macOS版ChromeDriver(用于Selenium)

Chrome 125版本适配macOS的ChromeDriver解决方案
  • 利用Selenium内置驱动管理(推荐):如果你使用的是Selenium 4.6及以上版本,无需手动下载ChromeDriver。Selenium会自动检测当前Chrome版本,并下载适配macOS架构(Intel/Apple Silicon)的对应驱动。示例代码:
    from selenium import webdriver
    from selenium.webdriver.chrome.service import Service
    
    # 自动匹配驱动
    service = Service()
    driver = webdriver.Chrome(service=service)
    
  • 手动下载注意架构区分:Chrome 125对应的ChromeDriver官方包包含macOS的两个版本——x64(适配Intel芯片)和arm64(适配Apple Silicon芯片),下载时需对应自己的Mac架构,解压后即可用于Selenium。
  • 排查常见错误:如果手动下载后仍无法使用,检查是否将ChromeDriver所在路径添加到系统环境变量,或者在代码中指定驱动路径:
    from selenium import webdriver
    from selenium.webdriver.chrome.service import Service
    
    # 指定本地驱动路径
    service = Service(executable_path="/path/to/your/chromedriver")
    driver = webdriver.Chrome(service=service)
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.22 21:07:01