Selenium error - couldn't register this node: hub down or not responding

 ̄綄美尐妖づ 提交于 2019-12-11 02:22:59

问题


I'm getting this error message: couldn't register this node: hub down or not responding. when I'm trying to follow this quickstart guide: http://code.google.com/p/selenium/wiki/Grid2

When I run the command below:

java -jar selenium-server-standalone-2.14.0.jar -role node  -hub http://localhost:4444/grid/register

I download 2.17.0 version of selenium standalone jar...

I don't know what to do after that.


回答1:


First, start selenium-grid hub:

java -jar selenium-server-standalone-2.42.2.jar -role hub -timeout 30 -browserTimeout 60

After that your node(s):

java -jar selenium-server-standalone-2.42.2.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.ie.driver="pathToIEDriver\IEDriverServer.exe" -Dwebdriver.chrome.driver="pathToChromeDriver\chromedriver.exe" -browser "browserName=internet explorer,version=11,maxInstances=5,seleniumProtocol=WebDriver" -browser "browserName=chrome,version=latest,maxInstances=5,seleniumProtocol=WebDriver" -browser "browserName=firefox,version=25,maxInstances=5,seleniumProtocol=WebDriver"

Some parameters can be changed in last command line, just decide what browser you have, version etc...




回答2:


Pls try to assign the node with port no as follows

java -jar selenium-server-standalone-2.42.2.jar -role webdriver -hub ttp://localhost:4444/grid/register -port 7777




回答3:


Try with selenium-server-standalone-2.38.0 . this version resolved my issue.



来源:https://stackoverflow.com/questions/8945719/selenium-error-couldnt-register-this-node-hub-down-or-not-responding

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!