将 phantomjs 节点注册到 Selenium Grid

Register phantomjs node to Selenium Grid

我目前在 windows 平台上 运行 Selenium Grid 3.4.0 和 phantomjs 2.1.1。

当我尝试将 phantomjs 节点注册到我的集线器时,出现以下错误:

K:phantomjs-2.1.1-windows/bin/phantomjs.exe --webdriver=8080 
--webdriver-selenium-grid-hub=http://IP:5786 
[ERROR - 2017-06-05T13:35:55.135Z] GhostDriver - main.fail - 
{"line":85,"sourceU
RL":"phantomjs://code/main.js","stack":"global 
code@phantomjs://code/main.js:85:56"}

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

有谁知道如何解决这个错误? 目前我的中心是 运行 5 个 Firefox 实例,5 个 chrome 实例和 1 个 IE 实例。

[ERROR - 2017-06-06T14:36:23.920Z] 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 1.9.8 并且有效...