. How Can I Fix This Error - Unable To Connect To Host 127.0.0.1 On Port 7055 After 45000 Ms. Firefox Console Output:

577    Asked by AlGerman in QA Testing , Asked on Nov 23, 2022

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 TestClass { 
    public static void main(String[] args) { 
        WebDriver driver ;
        System.setProperty("webdriver.gecko.driver", "");
        driver = new FirefoxDriver(); 
        driver.get("google.com"); 
        System.out.println("Successfully opened the website"); 
        //driver.close(); 
    } 

How to fix the error, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms?

Answered by Alison Kelly

If you are unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. firefox console output in selenium -


You can try this once :

Download the gecko driver from https://github.com/mozilla/geckodriver/releases as per the requirements.
Then Write the code in Selenium under the main method:
System.setProperty("webdriver.gecko.driver",
"path you downloaded/geckodriver.exe");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
WebDriver driver = new FirefoxDriver(capabilities);
driver.get("www.google.com");
I think this might help you because there was an issue with the updated version of firefox.


Your Answer

Interviews

Parent Categories