javascript - 出现错误 : Could not start Ghost Driver

标签 javascript selenium phantomjs openshift ghostdriver

我正在尝试在我的 Openshift 服务器内运行 Ghostdriver。当我运行此命令时:

./phantomjs --webdriver=15002

它说:

PhantomJS is launching GhostDriver...
[ERROR - 2014-08-01T04:14:21.160Z] GhostDriver - main.fail - {"message":"Could not start Ghost Driver","line":82,"sourceId":139887801789952,"sourceURL":":/ghostdriver/main.js","stack":"Error: Could not start Ghost Driver\n    at :/ghostdriver/main.js:82","stackArray":[{"sourceURL":":/ghostdriver/main.js","line":82}]}
$ ./phantomjs --version
1.9.8

请帮帮我,我在 10 Days 中收到此错误。我搜索了所有内容并用谷歌搜索了所有内容。什么都没有解决我:(我很沮丧:(

我们将不胜感激!!

最佳答案

OpenShift 不允许绑定(bind)本地主机地址;有a patch允许 GhostDriver 绑定(bind)任何指定的 IP(目前无论如何它总是绑定(bind)到 localhost),但它仍然没有在 PhantomJS 源代码树和二进制发行版中实现。

为了在OpenShift上使用PhantomJS + GhostDriver,我在应用补丁后重新编译了它,你可以在这里找到它:https://paolobernardi.wordpress.com/2015/02/25/phantomjs-with-ghostdriver-on-openshift/

关于javascript - 出现错误 : Could not start Ghost Driver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28606650/

相关文章:

phantomjs - 如何在 CasperJS/PhantomJS 脚本中与用户交互?

javascript - 在 javascript/jquery 中的自动完成中突出显示匹配的字母

javascript - 在nodejs中使用aysync对oracledb进行同步查询

javascript - 我们可以获得 jQuery Validate 错误类型吗?

selenium - Selenium 可以与 Team foundation server 集成吗

java - Selenium 中自动弹出身份验证

javascript - 使用 clipRect() 后设置 PhantomJS 捕获整个屏幕

javascript - 禁用复选框

java - 如何点击div中的文字

AngularJS Jasmine 2.0 异步测试超时