I am trying to launch chrome using selenium webdriver. I have set the property with the correct path and still, I am getting the following error. The path to the driver executable must be set by the webdriver.chrome.driver
system property
Asked
Active
Viewed 84 times
-1

surajs1n
- 1,493
- 6
- 23
- 34

Pratiksha Sharma
- 11
- 1
-
Welcome :) https://stackoverflow.com/help/how-to-ask – Ajay Pandya Aug 22 '19 at 09:10
1 Answers
2
You are missing .exe
in your path, use the below path
"C:\\Users\\PRATIKSHA\\DOWNLOADS\\chromedriver.exe"
and you need to set property for chromedriver webdriver.chrome.driver
System.setProperty("webdriver.chrome.driver", "C:\\Users\\PRATIKSHA\\DOWNLOADS\\chromedriver.exe");
See the sample code from chromedriver doc here

CodeIt
- 3,492
- 3
- 26
- 37
-
If you are demonstrating the _windows_ usage it's better to represent the path within double quotes. – undetected Selenium Aug 23 '19 at 08:06
-