Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox WebDriver doesn't work with Firefox 32

I've just updated to Firefox 32, when I attempt to run my Selenium Webdriver Test, Im getting the following

Failed to start up socket within 45000 ms. Attempted to connect to the following addresses: 127.0.0.1:7055 OpenQA.Selenium.WebDriverException was unhandled by user code   HResult=-2146233088   Message=Failed to start up socket within 45000 ms. Attempted to connect to the following addresses: 127.0.0.1:7055   Source=WebDriver   StackTrace:        at OpenQA.Selenium.Firefox.FirefoxDriverServer.ConnectToBrowser(TimeSpan timeToWait)        at OpenQA.Selenium.Firefox.FirefoxDriverServer.Start()        at OpenQA.Selenium.Firefox.FirefoxDriverCommandExecutor.Execute(Command commandToExecute)        at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)        at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)        at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)        at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile, ICapabilities capabilities, TimeSpan commandTimeout)        at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile, TimeSpan commandTimeout)        at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile)        at OpenQA.Selenium.Firefox.FirefoxDriver..ctor()        at SMT.Web.FunctionalTests.Drivers.Driver.GetWebDriver(Int32 browser, String page) 

I was expecting to be able to run the tests as per normal.

Has anyone experiencing the same thing? How did you resolve the issue?

Selenium version: 2.41.0 (Installed as a Nuget Package) OS: Windows 7 Browser: Firefox Browser version: 32

like image 656
ChrisMcLellan Avatar asked Sep 03 '14 14:09

ChrisMcLellan


People also ask

Which version of Firefox is compatible with Selenium?

New Selenium IDE FireFox was fully supported only in previous versions i.e. v47 and earlier. Selenium WebDriver version 2.53 is not compatible with Mozilla FireFox version 47.0+. After v47. 0, FireFox is provided with GeckoDriver.

Which version of Firefox is compatible with Gecko driver?

Gecko driver works with Firefox version 47 or above. It can be resolved by updating Firefox version to 47 or above.

Why it is Gecko driver for Firefox?

This program provides the HTTP API described by the WebDriver protocol. to communicate with Gecko browsers, such as Firefox. It translates calls into the Firefox remote protocol by acting as a proxy between the local- and remote ends. You can consult the change log for a record of all notable changes to the program.


2 Answers

The latest Firefox version that Selenium 2.41.0 officially supports is 28. Downgrade your browser. According to the other answers, downgrading to Firefox 31 is enough to make it work.

It is always a good idea to have the latest selenium package installed. The strategy, though, is always the same - make sure that you are using the version supported by your selenium package browser.

See also:

  • Firefox version for selenium-firefox-driver 2.41.0
  • Unable to obtain stable Firefox connection in 60 seconds (Windows 8 + FF 32.0)
like image 137
alecxe Avatar answered Sep 23 '22 00:09

alecxe


That is correct. 2.42.0, and 2.42.2 will not work with FF 32. The failures is as follows: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms .

So the strategy is to roll back until 2.43 is released.

like image 39
StupidPeopleTrick Avatar answered Sep 26 '22 00:09

StupidPeopleTrick