My script is not running even by using selenium 2.53.1 and firefox 47.0.1. Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
is the error returned.
The script that was tried is,
package SystemPackTest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class TestCalass {
public static void main(String[] args) {
WebDriver driver ;
System.setProperty("webdriver.gecko.driver", "<geckodriver path>");
driver = new FirefoxDriver();
driver.get("google.com");
System.out.println("Successfully opened the website");
//driver.close();
}
}
Question - How to fix error, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms?
driver.get("https://www.google.com");
And selenium 2.53.1 is not compatible for Firefox 47.0.1. (I think this two will resolve your problem)