在Selenium Grid中注册PhantomJS节点时出错 [英] Error registering PhantomJS node in Selenium Grid

查看:154
本文介绍了在Selenium Grid中注册PhantomJS节点时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题

  • 我通过以下方式成功启动了Selenium Grid集线器:

java -jar selenium-server-standalone-2.53.0.jar -role hub

  • 之后,我尝试使用以下命令启动PhantomJS节点:

phantomjs --webdriver=8090 --webdriver-selenium-grid-hub=http://localhost:4444

但出现错误:

[INFO-2016-03-25T13:56:28.397Z] GhostDriver-主-运行于 端口8090 [INFO-2016-03-25T13:56:28.397Z] GhostDriver-主- 注册到Selenium HUB' http://localhost:4444 '版本:使用 '127.0.0.1:8090'与 org.openqa.grid.selenium.proxy.DefaultRemoteProxy作为远程代理. [错误-2016-03-25T13:56:28.400Z] GhostDriver-main.fail- {"line":97,"sourceURL":"phantomjs://platform/hub_register.js","stack":"register @ phantomjs://platform/hub_register.js:97:79 \ nglobal code @ phantomjs://code/main.js:78:37}

[INFO - 2016-03-25T13:56:28.397Z] GhostDriver - Main - running on port 8090 [INFO - 2016-03-25T13:56:28.397Z] GhostDriver - Main - registering to Selenium HUB 'http://localhost:4444' version: using '127.0.0.1:8090' with org.openqa.grid.selenium.proxy.DefaultRemoteProxy as remote proxy. [ERROR - 2016-03-25T13:56:28.400Z] GhostDriver - main.fail - {"line":97,"sourceURL":"phantomjs://platform/hub_register.js","stack":"register@phantomjs://platform/hub_register.js:97:79\nglobal code@phantomjs://code/main.js:78:37"}

phantomjs://platform/console++.js:263错误

phantomjs://platform/console++.js:263 in error

标准节点可以正常运行,但是PhantomJS失败.我在做什么错了?

Standard node works ok, but PhantomJS failes. What I'm doing wrong?

推荐答案

对于仍在寻找的任何人,这里提供linux和Windows x64构建,以及v2.1.1的解决方法(Windows构建是在请求请求上-十六进制编辑器)解决方法不适用于Windows cos,压缩后的.exe)

For anyone still looking, there are linux and windows x64 builds available here with the workaround of v2.1.1 (windows build is on a pull request - the hex editor workaround wont work for windows cos the .exe's are compressed)

https://github.com/mrorgues/PhantomJSCustomEdition

这篇关于在Selenium Grid中注册PhantomJS节点时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆