-2

So I am new in selenium when I try to automate the browser I get this error. Any idea how do I fix this error? Probably my file path is set up wrong way?

Exception in thread "main" java.lang.IllegalStateException: 

The driver executable must be a regular file: C:\Selenium\chromedriver_win32
    at org.openqa.selenium.internal.Require$FileStateChecker.isFile(Require.java:345)
    at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:147)
    at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:142)
    at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:38)
    at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:231)
    at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:437)
    at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:127)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:48)
    at testing.testcase1.main(testcase1.java:17)
codeling
  • 10,672
  • 4
  • 37
  • 67
  • Does this answer your question? [Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist error using Selenium ChromeDriver and Java](https://stackoverflow.com/questions/70074782/exception-in-thread-main-java-lang-illegalstateexception-the-driver-executabl) – Dmytro Chasovskyi May 17 '22 at 19:30

0 Answers0