I have written the correct code for setting the property of ChromeDriver and the path is also correct, still, I am getting error.
My code:
WebDriver driver = new ChromeDriver();
System.setProperty("webdriver.chrome.driver",
"D:\\List_of_Jar\\chromedriver.exe");
String Url = "https://www.google.com";driver.get(Url);
I am getting an error as " java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property;"