【问题标题】:Exception in thread "main" org.openqa.selenium.WebDriverException: connection refused线程“主”org.openqa.selenium.WebDriverException 中的异常:连接被拒绝
【发布时间】:2018-07-01 05:44:51
【问题描述】:

我正在使用 Selenium:3.12.0,geckodriver:0.21.0,Firefox:52(32 位)。

我收到如下错误:

线程“主”org.openqa.selenium.WebDriverException 中的异常:连接被拒绝

我是否使用了正确的组合?如果我想使用 Firefox 52 和 Selenium 3.12,那么应该使用哪个 geckodriver 版本?

【问题讨论】:

  • 错误堆栈跟踪有助于分析问题。使用错误堆栈跟踪更新问题。

标签: selenium


【解决方案1】:

来自geckodriver 开发者之一的官方回答:

我们不再支持 Firefox 52ESR 和 geckodriver 0.20.1 不适用于该版本。请参阅发行说明以了解最少 Firefox 版本。

请注意,Firefox 60ESR 在此期间可用,您 应该升级。

Link 加入对话。

所以,你必须升级你的 Firefox。

【讨论】:

  • 谢谢 Andrei,我将 Firefox 升级到 61.0(64 位),但仍然出现错误。 “线程“主”org.openqa.selenium.WebDriverException 中的异常:连接被拒绝”
猜你喜欢
  • 1970-01-01
  • 2016-01-29
  • 1970-01-01
  • 2017-03-14
  • 2022-01-19
  • 2013-06-29
  • 2018-12-31
  • 1970-01-01
  • 2014-10-13
相关资源
最近更新 更多