java.lang.IllegalStateException

The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases at com.google.common.base.Preconditions.checkState(Preconditions.java:199) at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109) at org.openqa.selenium.firefox.Ge ckoDriverService.access$100(GeckoDriverService.java:38) at org.openqa.selenium.firefox.Ge ckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:91) at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296) at org.openqa.selenium.firefox.Fi refoxDriver.createCommandExecutor(FirefoxDriver.java:245) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:220) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:215) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:124) at seleniumConcepts.FFMarionatte_AlternateFFDriver.createDriverInstance(FFMarionatte_AlternateFFDriver.java:18)

Solutions on the web28676

  • via Google Groups by Ram Narayan, 10 months ago
    The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver
  • The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see The latest version can be downloaded from at com.google.common.base.Preconditions.checkState(Preconditions.java:176) at
  • The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
  • Stack trace

    • java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases at com.google.common.base.Preconditions.checkState(Preconditions.java:199) at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109) at org.openqa.selenium.firefox.Ge ckoDriverService.access$100(GeckoDriverService.java:38) at org.openqa.selenium.firefox.Ge ckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:91) at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296) at org.openqa.selenium.firefox.Fi refoxDriver.createCommandExecutor(FirefoxDriver.java:245) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:220) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:215) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.Fi refoxDriver.<init>(FirefoxDriver.java:124) at seleniumConcepts.FFMarionatte_AlternateFFDriver.createDriverInstance(FFMarionatte_AlternateFFDriver.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    3 times, 6 months ago
    Unknown user
    Once, 1 year ago