Tuesday, 31 October 2017

Steps to Run Selenium Grid Hub and Node (Window7 OS)

There are some steps to start the Hub(Server) and then register the Node(OS) with Hub.

 Step: 1


Step: 2




@@@@@@@@@@@@@@     Run this Command for Hub @@@@@@@@@@@@@@
java -jar selenium-server-standalone-3.6.0.jar -role hub

========================================================================

@@@@  Run this Command for Node Configure with Chrome Browser in Window OS @@@@

java -Dwebdriver.chrome.driver=D:\SeleniumGrid\drivers\chromedriver.exe -jar selenium-server-standalone-3.6.0.jar -role node -hub http://192.168.3.12:4444/grid/register -browser browserName=chrome -port 5555

========================================================================

@@@@  Run this Command for Node Configure with Firefox Browser in Window OS @@@@

java -Dwebdriver.geckodriver.driver=D:\SeleniumGrid\drivers\geckodriver.exe -jar selenium-server-standalone-3.6.0.jar -role node -hub http://192.168.3.12:4444/grid/register -browser browserName=firefox -port 5555

========================================================================

@@@@@ Run this Command for Node Configure with IE Browser in Window OS @@@@@

java -Dwebdriver.ie.driver=D:\SeleniumGrid\drivers\IEDriverServer.exe -jar selenium-server-standalone-3.6.0.jar -role node -hub http://192.168.3.12:4444/grid/register -browser browserName=ie -port 5555

========================================================================

 Run this Command for Node Configure with both firfox,ie and Chrome Browser in Window OS 

java -Dwebdriver.chrome.driver=D:\SeleniumGrid\drivers\chromedriver.exe -Dwebdriver.gecko.driver=D:\SeleniumGrid\drivers\geckodriver.exe -Dwebdriver.ie.driver=D:\SeleniumGrid\drivers\IEDriverServer.exe 
-jar selenium-server-standalone-3.6.0.jar -role node -hub http://192.168.3.12:4444/grid/register



No comments:

Post a Comment

Code Example - File Download By Robot Class In Firefox Browser

Exported from Notepad++ package com . practiceCode ; import java . awt . AWTException ; import java . awt . Robot ; import j...