{
  "id": "python/pytest-selenium-webdriver-manager-fail",
  "signature": "selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 121",
  "signature_zh": "selenium.common.exceptions.SessionNotCreatedException: Message: session not created: 此版本的 ChromeDriver 仅支持 Chrome 121",
  "regex": "selenium\\.common\\.exceptions\\.SessionNotCreatedException:\\ Message:\\ session\\ not\\ created:\\ This\\ version\\ of\\ ChromeDriver\\ only\\ supports\\ Chrome\\ version\\ 121",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The installed ChromeDriver version doesn't match the local Chrome browser. This commonly happens after an automatic Chrome update without a corresponding driver update.",
  "root_cause_type": "generic",
  "root_cause_zh": "已安装的 ChromeDriver 版本与本地 Chrome 浏览器不匹配。常见于 Chrome 自动更新但 driver 未同步更新。",
  "versions": [
    {
      "version": "4.15.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "4.20.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Works until Chrome auto-updates again; brittle and requires manual re-pinning per machine.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Headless mode doesn't bypass the version check; the SessionNotCreatedException is raised before browser launch.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.94,
      "how": "from selenium import webdriver\nfrom selenium.webdriver.chrome.service import Service\n\n# Selenium Manager handles driver download automatically\ndriver = webdriver.Chrome()  # no Service path needed",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "from selenium import webdriver\nfrom selenium.webdriver.chrome.service import Service\nfrom webdriver_manager.chrome import ChromeDriverManager\n\ndriver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-01-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}