sufiya sufiya - 28 days ago 17
Java Question

Slenium web driver : Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: ce6fd}

while I am running a selenium webdriver script I got an error named

"org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output".


platform used :


  1. Firefox - 44.0.2

  2. selenium web driver - 2.48.2

  3. language - java



Also I tried many suggestion by google with different version of firefox and selenium but still I am facing this issue. Please help me out to overcome with this error.

Answer

Try using Selenium 3.0.1 with latest Firefox. Don't forget to download the gecko driver and set the System variable to it's path:

System.setProperty("webdriver.gecko.driver","path of geckodriver.exe");
WebDriver driver = new FirefoxDriver();