Connection refused when phantomjs is run on different machine than selenium hub

一曲冷凌霜 提交于 2019-12-04 17:52:28

Add your IP address for the webdriver parameter along with the port number. This should help resolve the issue. Ex -

phantomjs --webdriver-selenium-grid-hub=http://<Remote_IP_Of_Grid_Hub>:4444 --webdriver=<IP_Of_The_Local_Node>:9301

Basically, if no IP is mentioned in "--webdriver" param, node value is sent as localhost. The hub then looks for requests on localhost port 9301. Since the port 9301 is not open on the hub, connection finally drops & we see error.

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