【问题标题】:Selenium WebDriver - Firefox - Unable to bind to locking port within 45000 msSelenium WebDriver - Firefox - 无法在 45000 毫秒内绑定到锁定端口
【发布时间】:2012-07-16 16:22:04
【问题描述】:

我正在尝试使用 Firefox 运行 Selenium 测试。我正在使用 C#。

new OpenQA.Selenium.Firefox.FirefoxDriver();

我也尝试过使用配置文件集:

FirefoxProfile profile = new FirefoxProfile(@"E:\...\FirefoxProfile"); 
new OpenQA.Selenium.Firefox.FirefoxDriver();

我得到的错误:

无法在 45000 毫秒内绑定到锁定端口 7054

我什至尝试卸载 Firefox,包括配置文件并重新安装。没有帮助。


仅供参考:我有一个关于 3 selenium webdrivers 的问题。我试图将问题分成多个,以便讨论更容易。原来的: Selenium WebDriver - No driver is working for me

【问题讨论】:

  • 你使用的是什么版本的 selenium
  • 我遇到了类似的问题,只需重新启动即可解决。估计安装后需要正确设置一些环境变量。

标签: firefox selenium webdriver


【解决方案1】:

调试这个的一些技巧:

我发现测试问题是否存在的最快方法是浏览到

http://localhost:4444/wd/hub/static/resource/hub.html

然后尝试在那里创建一个 firefox 会话。

我遇到了 FF 18.0 和 Selenium server 2.28.0(撰写本文时的最新版本)的问题。我确保 Windows 防火墙没有阻止 Selenium 服务器,然后重新启动了机器——这成功了。所以我认为罗斯拉森是对的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-22
    • 1970-01-01
    • 2012-09-17
    相关资源
    最近更新 更多