2

With latest Selenium WebDriver v 2.50.00 I am getting (again) following exception:

Failed to start up socket within 45000 ms. Attempted to connect to the following addresses: 127.0.0.1:7055

executing:

driver = new FirefoxDriver(new FirefoxBinary(), firefoxProfile, pageLoadTimeout);

This happens with version 43 and higher of Firefox. I have downgraded Firefox to v. 39 and there it works OK.

It seems that this issue happened before couple of times with various versions of Selenium and Firefox, see here or here.

Any workaround for this or downgrading Firefox and waiting for a new version of Selenium WebDriver is the only way?

Community
  • 1
  • 1
Vojtěch Dohnal
  • 7,867
  • 3
  • 43
  • 105

1 Answers1

3

Yes, It is bug which still going to resolve for latest versions You need set the Preferences as xpinstall.signatures.required", false.

Below code is working for me but it is in java. you get the idea where you need to change

    WebDriver driver = null;
    final FirefoxProfile firefoxProfile = new FirefoxProfile();
    firefoxProfile.setPreference("xpinstall.signatures.required", false);
    driver = new FirefoxDriver(firefoxProfile);
    driver.manage().window().maximize();
    driver.get("https://www.google.co.in/");

Hope it will help you :)

Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
  • Yes, great, adding a line `firefoxProfile.SetPreference("xpinstall.signatures.required", false);` did the trick indeed. – Vojtěch Dohnal Jan 28 '16 at 13:23
  • `Firefox 48: (Pushed from Firefox 46). Release and Beta versions of Firefox for Desktop will not allow unsigned extensions to be installed, with no override. ` - what now? – Vojtěch Dohnal Sep 01 '16 at 14:27