【发布时间】: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