ChrisMcLellan
ChrisMcLellan

Reputation: 613

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

Upvotes: 46

Views: 48402

Answers (8)

SüniÚr
SüniÚr

Reputation: 896

You need to download the latest client jar. And all ALL OF THEM to the build path there will be 2 jar files in the root, and numerous in the lib subfolder.

Download the client : http://selenium-release.storage.googleapis.com/2.43/selenium-java-2.43.1.zip

enter image description here

source: http://www.seleniumhq.org/download/

Edit: Better solution if you use Maven. https://maven.apache.org/what-is-maven.html In eclipse just create new maven project, or on exists project configure -> convert to maven project.

Then insert the pom the selenium dependency. selenium maven Current selenium pom:

<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>3.0.1</version>
</dependency>

Upvotes: 1

Giles Roberts
Giles Roberts

Reputation: 6883

The latest version of Firefox WebDriver (Selenium 2.44) now works with Firefox 32. However if you're downloading Selenium via Nuget within Visual Studio, ensure that you've got the correct project selected within the package manager console. I downloaded the new compatible version into my solution and still experienced the 45000ms timeout error. It turned out that I had updated Selenium in my main project but not in my test project.

Upvotes: 0

Mite Mitreski
Mite Mitreski

Reputation: 3626

They have just released 2.43.0 (2014-09-09)

  • Make sure UnhandledAlertErrors includes the alert text if provided by the driver.
  • Firefox
    • Make sure the browser process is properly killed if silent startup hangs (#7392)
    • native events support for Firefox 24, 31 and 32
  • Loosen websocket dependency to ~> 1.0
  • Add support for switch_to.parent_frame (thanks abotalov)
  • Fix download location for Selenium::Server.{latest,get} (#7049 - thanks marekj)

Ruby https://selenium.googlecode.com/git/rb/CHANGES

Java https://selenium.googlecode.com/git/java/CHANGELOG

Upvotes: 8

alecxe
alecxe

Reputation: 473863

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:

Upvotes: 21

user3778793
user3778793

Reputation: 11

Just downgraded my browser to version 31. selenium-2.42.2 does not work on FF version 32.

Upvotes: 1

StupidPeopleTrick
StupidPeopleTrick

Reputation: 101

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.

Upvotes: 10

user1532394
user1532394

Reputation:

They have a ticket about this issue and they've fixed it for version 2.43

see here

I don't know when they'll release 2.43, so I guess downgrade your browser or switch to HtmlUnitDriver, ChromeDriver, or OperaDriver in the meantime?

Upvotes: 3

dmeehan
dmeehan

Reputation: 2357

Instead of downgrading your browser as others have suggested, why not upgrade your WebDriver to 2.42?

Upvotes: 1

Related Questions