Firefox WebDriver不支持Firefox 32

编程入门 行业动态 更新时间:2024-10-28 08:18:48
本文介绍了Firefox WebDriver不支持Firefox 32的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我刚刚更新到Firefox 32,当我试图运行我的Selenium Webdriver测试,我得到以下

无法在45000毫秒内启动套接字。尝试连接到以下地址:127.0.0.1:7055 OpenQA.Selenium.WebDriverException 未被用户代码处理HResult = -2146233088消息=未能在45000毫秒内启动套接字。尝试连接到以下地址:127.0.0.1:7055源= WebDriver StackTrace:在OpenQA.Selenium.Firefox.FirefoxDriverServer.ConnectToBrowser(TimeSpan timeToWait)在OpenQA .Selenium.Firefox.FirefoxDriverServer.Start() at OpenQA.Selenium.Firefox.FirefoxDriverCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, (ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)在OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary二进制文件,FirefoxProfile文件,ICapabilities功能,TimeSpan commandTimeout)在OpenQA.Selenium.Firefox.FirefoxDriver..ctor (FirefoxBinary二进制,FirefoxProfile教授ile,TimeSpan commandTimeout)在OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary二进制,FirefoxProfile配置文件)在OpenQA.Selenium.Firefox.FirefoxDriver..ctor()在SMT .Web.FunctionalTests.Drivers.Driver.GetWebDriver(Int32浏览器,字符串页面)

我期望能够正常运行测试。

有没有人遇到同样的事情? Selenium版本:2.41.0(作为Nuget包安装)操作系统:Windows 7 浏览器:Firefox 浏览器版本:32

解决方案

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

有最新的 selenium package 安装。这个策略总是一样的 - 确保你使用的是你的selenium包浏览器支持的版本。

另见:

  • Firefox版本的selenium-firefox-driver 2.41.0
  • 无法获得稳定的Firefox连接60秒(Windows 8 + FF 32.0)

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

解决方案

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)

更多推荐

Firefox WebDriver不支持Firefox 32

本文发布于:2023-07-05 14:46:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1038502.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不支持   Firefox   WebDriver

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!