Exception in thread "main" 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:872) at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:135) at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:41) at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:165) at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:363) at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:181) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:154) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:132) at TesteAutomatizado.main(TesteAutomatizado.java:10)