我已经使用Selenium Webdriver启动了Codeception,并且在运行codecept.phar后我收到了WebCurlException错误 .
脚步:
1.从命令提示符启动selenium独立服务器jar文件 . 2.然后我从命令提示符运行以下命令 .
php codecept.phar运行
3.然后我的控制台出现以下错误 .
“[webdrivercurlException] curl错误引发http POST到http://xxxx.x.x.x:4444/wd/hub/session与params:{desiredcapabilities ":{" browserName ":" firefox "}} Failed connect to " 127.0.0.1:4444 "; No error"
请参阅下面的附件截图 .
谢谢
帕塔
1 回答
这可能是因为您没有运行GhostDriver,这使得Selenim能够使用像Codeception这样的框架进行无头测试 . 在命令提示符下尝试此操作
这将在
12.0.0.1:4444
上实例化GhostDriver . 然后您可以运行测试 .