{"id":23052,"library":"chromedriver-binary","title":"chromedriver-binary","description":"Installs the chromedriver binary for Selenium/Playwright automation. Version 149.0.7818.0.0 corresponds to ChromeDriver matching Chrome 149. Released irregularly alongside ChromeDriver updates.","status":"active","version":"149.0.7818.0.0","language":"python","source_language":"en","source_url":"https://github.com/danielkaiser/python-chromedriver-binary","tags":["selenium","chromedriver","webdriver","automation","testing"],"install":[{"cmd":"pip install chromedriver-binary","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Function renamed in v80+; old name removed.","wrong":"from chromedriver_binary import chromedriver_path","symbol":"chromedriver_filename","correct":"from chromedriver_binary import chromedriver_filename"},{"note":"Side-effect import adds chromedriver to PATH.","symbol":"add_chromedriver_to_path","correct":"import chromedriver_binary"}],"quickstart":{"code":"import chromedriver_binary\nfrom selenium import webdriver\ndriver = webdriver.Chrome()\ndriver.get('https://example.com')\ndriver.quit()","lang":"python","description":"Import chromedriver_binary to automatically add chromedriver to PATH, then instantiate Selenium Chrome driver."},"warnings":[{"fix":"Replace `chromedriver_path` with `chromedriver_filename` or rely on the side-effect import.","message":"chromedriver_binary.chromedriver_path was removed in version 80+. Use chromedriver_binary.chromedriver_filename or just import the module.","severity":"breaking","affected_versions":">=80.0.0"},{"fix":"Use platform-specific Docker base images or install chromedriver via system package manager in CI.","message":"The package auto-downloads a chromedriver binary on install, but only for the host platform. Cross-platform builds (e.g., Docker multi-arch) may fail if the wrong binary is installed.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `import chromedriver_binary` or `from chromedriver_binary import chromedriver_filename`.","message":"Legacy import `from chromedriver_binary import *` is discouraged; instead import the module itself or use `chromedriver_filename`.","severity":"deprecated","affected_versions":"<80.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install chromedriver-binary` — note the hyphen in the package name.","cause":"Package not installed or installed with wrong name (e.g., `chromedriver-binary` vs `chromedriver_binary`).","error":"ModuleNotFoundError: No module named 'chromedriver_binary'"},{"fix":"Replace with `chromedriver_filename` or simply `import chromedriver_binary` without referencing the attribute.","cause":"Using deprecated attribute removed in v80+.","error":"AttributeError: module 'chromedriver_binary' has no attribute 'chromedriver_path'"},{"fix":"Ensure `import chromedriver_binary` is executed before any WebDriver instantiation. It performs PATH modification on import.","cause":"chromedriver_binary was imported too late or not at all; PATH not updated.","error":"selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}