How to fix 'chromedriver' executable needs to be available in the path
By Tan Lee Published on Dec 09, 2024 836
To fix the error "chromedriver executable needs to be available in the PATH", follow these steps.
How to fix 'chromedriver' executable needs to be available in the path?
To test if ChromeDriver is in the PATH, open a command prompt, type chromedriver
, and press Enter. If you see "Starting ChromeDriver 131.0.6778.87" (or similar), the PATH is correctly set, and the issue lies elsewhere.
Alternatively, you can specify the direct path to the ChromeDriver executable in your script to avoid relying on the PATH environment variable.
driver = webdriver.Chrome('/path/to/chromedriver');
In your specific case, you can directly reference the path to the ChromeDriver executable in your script to resolve the issue.
driver = webdriver.Chrome("C:/Users/DELL/Downloads/chromedriver_win32/chromedriver.exe");
Categories
Popular Posts
HTML Bootstrap 4 Login, Register & Reset Template
Nov 11, 2024
10 Common Mistakes ASP.NET Developers Should Avoid
Dec 16, 2024
RuangAdmin Template
Nov 13, 2024
Material Lite Admin Template
Nov 14, 2024