Selenium Grid +Error forwarding the new session Empty pool of VM for setup Capabilities

家住魔仙堡 提交于 2019-12-04 09:49:16
Varun Gautam

I just did a small tweak.

1). I launched the command prompt in "admin mode". 2). Gave the java path as "cd C:\Program Files (x86)\Java" in it 3). Then ran the command as "java -jar selenium-server-standalone-3.0.1.jar" without specifying any role

and Vollaaaa...it got fixed...!!!

Thanks to all of you for your help...Was after this error for last 3 days...a great relief must say.. :-)

Checkout this link for more information on how to do this... https://stackoverflow.com/a/42187314/7551276

Launch Selenium-server-standalone with below commands as hub and node.

For hub:

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

For node (Chrome):

java -jar selenium-server-standalone-2.48.2.jar -role node  -hub http://localhost:4444/grid/register -browser "browserName=chrome,maxinstance=1,platform=WINDOWS" -Dwebdriver.chrome.driver=C:\Selenium\chromedriver.exe

May be you have to get rid of -role hub option while setting up the node. Look at the discussion in this link.

https://github.com/angular/protractor/issues/1226

Note: Launch the command prompt in admin mode.

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