【问题标题】:Codeception:WebCurlException Error代码接收:WebCurlException 错误
【发布时间】:2014-08-24 05:00:44
【问题描述】:

我已使用 Selenium Webdriver 启动 Codeception,但在运行 codecept.phar 后出现 WebCurlException 错误。

步骤:

1.从命令提示符启动 selenium 独立服务器 jar 文件。 2.然后我从命令提示符运行以下命令。

php codecept.phar 运行

3.然后我在控制台中收到以下错误。

"[WebdrivercurlException] 带有参数的 http POST 到 http://xxxx.x.x.x:4444/wd/hub/session 引发 curl 错误:{desiredcapabilities":{"browserName":"firefox"}} 连接到“127.0.0.1:4444”失败;没有错误”

请看下面的截图。

谢谢

帕萨

【问题讨论】:

  • 检查 codeception 和 selenium 服务器的兼容性。您可能需要使用不同版本的 selenium 服务器 jar。

标签: php selenium selenium-webdriver webdriver codeception


【解决方案1】:

这可能是因为您没有运行 GhostDriver,它使 Selenim 能够使用 Codeception 等框架进行无头测试。在你的命令提示符下试试这个

phantomjs --webdriver=4444

这将在12.0.0.1:4444 上实例化 GhostDriver。之后您可以运行测试。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-24
    • 2013-12-24
    • 1970-01-01
    • 1970-01-01
    • 2014-12-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多