Getting error messageThe path to the driver executable must be set by the webdriverchromedriver system property while running sample selenium program | Selenium Forum
M
Manideep Mamillapalli Posted on 19/11/2018
Hi , can you please respond to my query on priority . I got stuck in middle of Program and not able to move further.

Getting below error while trying to launch chrome browser
 "error message="The path to the driver executable must be set by the webdriver.chrome.driver system property; > while running sample selenium program"

Below is my code snippet.

import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class GmailPageValidation {

@Test
public void testGmail()
{

System.setProperty("Webdriver.Chrome.Driver","F:\\ChromeDriver\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("www.gmail.com");
driver.quit();
}


}


And below is my POM.xml snippet .


<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.141.59</version>
</dependency>




A
Ashish Thakur Replied on 27/11/2018

Java is case sensitive
It should be

webdriver.chrome.driver

instead  of
Webdriver.Chrome.Driver