我已经用Selenium Webdriver启动了Codeception,在我运行codecept.phar之后,我得到了一个WebCurlException错误。
步骤:
1.从命令提示符启动selenium独立服务器jar文件。2.然后,我从命令提示符运行以下命令。
php codecept.phar运行
3.然后在我的控制台中得到以下错误。
“使用参数:{desiredcapabilities":{"browserName":"firefox"}}无法连接到"127.0.0.1:4444";无错误”
请看下面的截图。

谢谢
帕塔
发布于 2014-12-30 18:25:34
这可能是因为您没有运行GhostDriver,这使得Selenim能够使用诸如Codeception这样的框架进行无头测试。在命令提示符中尝试执行此操作
phantomjs --webdriver=4444这将在12.0.0.1:4444上实例化GhostDriver。然后,您可以运行您的测试。
https://stackoverflow.com/questions/24547458
复制相似问题