Codeception:WebCurlException错误

时间:2014-07-03 07:22:59

标签: php selenium selenium-webdriver webdriver codeception

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

步骤:

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

php codecept.phar run

3.然后我的控制台出现以下错误。

" [WebdrivercurlException]   使用参数将http POST发送到http://xxxx.x.x.x:4444/wd/hub/session的卷曲错误:{desiredcapabilities":{" browserName":" firefox"}} 连接到" 127.0.0.1:4444";没有错误"

请参阅下面的截图。

enter image description here

由于

帕塔

1 个答案:

答案 0 :(得分:0)

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

中尝试此操作
phantomjs --webdriver=4444

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