Firefox WebDriver不适用于Firefox 32

Chr*_*lan 46 firefox selenium selenium-webdriver

我刚刚更新到Firefox 32,当我尝试运行我的Selenium Webdriver测试时,我得到以下内容

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)
Run Code Online (Sandbox Code Playgroud)

我希望能够按照正常情况运行测试.

有没有人经历过同样的事情?你是怎么解决这个问题的?

Selenium版本:2.41.0(作为Nuget包安装)操作系统:Windows 7浏览器:Firefox浏览器版本:32

ale*_*cxe 21

Selenium 2.41.0正式支持的最新Firefox版本是28.降级浏览器.根据其他答案,降级到Firefox 31足以使其工作.

安装最新的selenium软件包总是一个好主意.但是,策略始终相同 - 确保您使用的是selenium软件包浏览器支持的版本.

也可以看看:

  • 你可以在这里找到旧版本:https://support.mozilla.org/en-US/kb/install-older-version-of-firefox (2认同)

小智 10

那是正确的.2.42.0和2.42.2将不适用于FF 32.失败如下:org.openqa.selenium.WebDriverException:无法在45000 ms内绑定到锁定端口7054.

所以策略是回滚直到2.43发布.


Mit*_*ski 8

他们刚刚发布2.43.0(2014-09-09)

  • 确保UnhandledAlertErrors包含驱动程序提供的警报文本.
  • 火狐
    • 如果静默启动挂起,请确保正确杀死浏览器进程(#7392)
    • Firefox 24,31和32的本机事件支持
  • 将websocket依赖关系松散到〜> 1.0
  • 添加支持switch_to.parent_frame(感谢abotalov)
  • 修复Selenium :: Server的下载位置.{latest,get}(#7049 - thanks marekj)

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

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