{
  "id": "python/pytest-selenium-webdriver-not-found",
  "signature": "selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 120\nCurrent browser version is 124.0.6367.78",
  "signature_zh": "selenium.common.exceptions.SessionNotCreatedException：消息：会话未创建：此版本的 ChromeDriver 仅支持 Chrome 版本 120\n当前浏览器版本为 124.0.6367.78",
  "regex": "selenium\\.common\\.exceptions\\.SessionNotCreatedException:\\ Message:\\ session\\ not\\ created:\\ This\\ version\\ of\\ ChromeDriver\\ only\\ supports\\ Chrome\\ version\\ 120\\\nCurrent\\ browser\\ version\\ is\\ 124\\.0\\.6367\\.78",
  "domain": "python",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "ChromeDriver binary version does not match the installed Chrome browser version. Selenium 4.x auto-manages drivers via Selenium Manager, but a stale chromedriver on PATH takes precedence and causes the mismatch.",
  "root_cause_type": "generic",
  "root_cause_zh": "ChromeDriver 二进制版本与已安装的 Chrome 浏览器版本不匹配。Selenium 4.x 通过 Selenium Manager 自动管理驱动，但 PATH 上过时的 chromedriver 会优先使用并导致不匹配。",
  "versions": [
    {
      "version": "4.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Security risk and often blocked by corporate IT; also brittle since Chrome auto-updates.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Headless still launches a real Chrome binary; the version check happens before mode selection.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "which chromedriver && sudo rm $(which chromedriver)\npytest tests/e2e/ -v\n# Selenium Manager downloads the correct driver on first run",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "# Dockerfile\nRUN apt-get install -y google-chrome-stable=124.* \n# or use selenium/standalone-chrome:124.0 image\n# pytest with RemoteWebDriver pointing to the container",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}