When I try to run Selenium within Eclipse, I get a The driver executable does not exist: error. I\'ve ensured that the path to the exe is correct and that the environment PA
The code block you have provided is not sufficient to analyze the root cause. How ever the following points are pretty much evident :
The initialization of ChromeDriver is error prone, it should have been :
ChromeDriver driver = new ChromeDriver();
As per best practices we should use the WebDriver interface instead of the ChromeDriver implementation :
WebDriver driver = new ChromeDriver();
As you are seeing the error as IllegalStateException: The driver executable does not exist: C:\Users\jagrelot\workspace\AntBuildExample\chromedriver.exe which clearly indicates your script is looking for the chromedriver binary in a different location other than the mentioned one. Probably its due to error prone code of setProperty.