• Register
0 votes

Problem :

Facing following Selenium Webdriver error
the path to the driver executable must be set by the webdriver.chrome.driver system property
6 5 3
6,930 points

Please log in or register to answer this question.

2 Answers

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"; 


9 7 4
38,600 points
0 votes

The path to the driver executable must be set by the webdriver.chrome.driver system properly.


If you are experienced this error, then error means that you have not told your system where to find your driver executable. Unlike when using the Firefox WebDriver you need to download a driver executable that is specific for chrome and builds the connections part between your Java Selenium program and the chrome Webbrowser.


To fix this problem you have to follow these steps;

  • Download the latest Chrome Driver for your operating system. If you are working with windows then choose “chromedriver_win32.zip”
  • Extract the content of the zip file to any place of your computer, that you will remember later.
  • After replacing the location of the chromedriver.exe with the specific location on your computer. Then add the following code to your Selenium program before creating a new instance of ChromeDriver.

That is the solution to the above problem.

Code sample:

A whole working code sample can look like this;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.chrome.ChromeDriver;


 * @author Nils Schuette via frontendtest.org


public class ChromeDriverTest {


             * @param args

             * @throws InterruptedException


            public static void main(String





11 5 2
3,890 points

Related questions

0 votes
1 answer 9 views
0 votes
1 answer 23 views
I am trying to launch Mozilla but still I am getting this error
asked Dec 15, 2020 TeamScript 13.5k points
0 votes
1 answer 19 views
I am finding a program that will help me to handle multiple windows in Selenium Webdriver.
asked Oct 5, 2020 Daniel Anderson 4k points
1 vote
1 answer 20 views
Problem: I am trying to automate a test which relies on access to a chrome user credential for the user logged into the Chrome browser. However, after logging into the browser (chromedriver), a message appears: 'sync is disabled by your administrator' How can i fix this?
asked Mar 8 Sabbir Hossain 14.6k points
0 votes
1 answer 1 view
1 view
Problem: Meta - OS: OSX 10.12.6 (16G29) ~./node_modules/chromedriver/bin/chromedriver -v ChromeDriver 2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061) ~ $ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7/Contents/Home ~ $ node -v v6.11.2 Browser: Chrome Version 62 ... .By, until = webdriver.until; var driver = new webdriver.Builder().forBrowser('chrome').build(); var timeout = 15000;
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 161 views
Problem : I am trying to learn the Selenium by myself. But now my Sendkeys is not working. Can anybody please help me to fix my issue. My code is as below: WebElement uname = driver.findElement(By.xpath("//*[@id='username']"));      uname.sendKeys("123456"); Below is the error: Exception in ... ip: '', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_161'
asked Feb 14, 2020 mphil 2.3k points
0 votes
1 answer 12 views
Problem: How do you update the protractor to use the latest version of Chromedriver 2.4?
asked Mar 20 ummesalma 29.2k points
0 votes
1 answer 15 views
Problem: Please help. What is the difference between ChromeDriver and WebDriver in selenium?
asked Mar 15 ummesalma 29.2k points
0 votes
1 answer 10 views
Problem: why we assign firefoxdriver instance to webdriver. I just need help
asked Mar 15 ummesalma 29.2k points
0 votes
1 answer 4 views
Problem: HELP! I need help understanding how to launch chrome browser in selenium web driver java?
asked Mar 31 zayed1 61.8k points