diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index 6c73ab2..dcef54e 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -842,3 +842,5 @@ def find_chrome_executable(): for candidate in candidates: if os.path.exists(candidate) and os.access(candidate, os.X_OK): return os.path.normpath(candidate) + + raise RuntimeError("Could not automatically find the chrome executable. Please install chrome or chromium first, or specify browser_executable_path the options.")