Programmers learn & share
0 votes
111 views

Problem :

Facing following Selenium Webdriver error
the path to the driver executable must be set by the webdriver.chrome.driver system property
by (6.9k points)   | 111 views

1 Answer

0 votes

Solution :

The path of your Chrome Driver is incorrect. And you must set the property before WebDriver initialisation as follows.

System.setProperty("webdriver.chrome.driver","D:\\List_of_Jar\\chromedriver.exe") ;

WebDriver wd =new ChromeDriver(); 

String baseUrl = "https://www.google.com"; 

wd.get(baseUrl);

by (36.1k points)  
2,204 questions
2,598 answers
59 comments
241 users