Recently I upgraded to Selenium 3.7.
Code:
import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public static
I tried with the same versions without any problem.
If the path to the geckodriver:
System.setProperty("webdriver.gecko.driver", "/usr/local/bin/geckodriver");
is correct, make sure that the geckodriver is executable for the user that execute the code:
chmod +x geckodriver