【问题标题】:org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinaryorg.openqa.selenium.WebDriverException:无法连接到二进制 FirefoxBinary
【发布时间】:2015-09-12 08:52:01
【问题描述】:

我收到以下错误:

org.openqa.selenium.WebDriverException: Failed to connect to binary 
FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) 
on port 7055; process output follows: 

我使用的是 Firefox 版本 40.0.3 和 Eclipse 版本 Luna Service Release 2 (4.4.2)。

奇怪的是,脚本中间成功运行了 2 次。但是,在那之后不断失败。

【问题讨论】:

  • 抛出了哪个错误?你的 windows 版本是多少?

标签: firefox selenium webdriver


【解决方案1】:

为了获得更好的帮助,请尽可能发布异常的完整堆栈。

  • 检查指定位置是否存在 firefox.exe。

  • 检查窗口注册(regedit)HKEY_CURRENT_USER/Softwar/Mozilla/Mozilla Firefore xx.x.x/bin双击PathToExe查找路径是否存在

  • 检查后添加您计算机上存在的firefox.exe(完整路径) C:\Program Files (x86)\Mozilla Firefox\firefox.exe进入环境变量Path

执行上述各项检查,看看是否有效。

如果还是不行,请尝试在您的计算机上重新安装 firefox

【讨论】:

    猜你喜欢
    • 2016-11-03
    • 2019-04-03
    • 1970-01-01
    • 1970-01-01
    • 2012-11-10
    • 1970-01-01
    • 2017-07-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多