Selenium stops before Chrome opens. If your test sets a driver path, check that the file exists. Remove a stale path and let Selenium Manager find the driver. With current Selenium and network access, try this in Python:
from selenium import webdriver
with webdriver.Chrome() as driver:
driver.get("about:blank")
Python: Unable to obtain driver for chrome
We passed Service("chromedriver") in a folder with no such file. Read the line above NoSuchDriverException:
ValueError: The path is not a valid file: chromedriver
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
Unable to discover proper chromedriver version in offline mode
We saw this warning above the same exception when we set SE_OFFLINE=true. Our test had no explicit path. There was no matching driver in the default cache, ~/.cache/selenium.
With offline mode off and network access available, Selenium Manager downloaded the driver. The Python example opened Chrome. If your build must stay offline, supply a compatible driver or restore its cache before running tests.
Selenium 4 for Java: Cannot run program ""
With the same offline setting and no cached driver, Selenium 4.52.0 reported SessionNotCreatedException in Java. Its first error line ended with Cannot run program "": error=2, No such file or directory. The earlier offline warning identified the missing driver. Check that warning before changing browser options.
Older Java: The path to the driver executable must be set
Selenium Java 3.141.59 stopped at new ChromeDriver(). Its message began:
java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property
This version predates Selenium Manager. Upgrade to a current Selenium release, or set the property to an installed ChromeDriver executable.
We checked Selenium 4.52.0 in Python and Java on 10 November 2026. We also ran the older Selenium Java 3.141.59 release. The messages matched on macOS 15.4.1 and Debian 12, with CI=1 and with CI unset.
References: Selenium driver location errors and Selenium Manager.