Recently I upgraded to Selenium 3.7.
Code:
import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public static
After doing some research, I manage to resolve this problem.
The error is due to the 127.0.0.1 map to localhost.com in etc/hosts. Edited: 127.0.0.1 localhost