Selenium HUB
Pre-requisites
- We should have driver and browser on local and remote system
- Make local system as HUB server then register all the VM's with hub
- Write test case then execcute on remote system
java -jar selenium-server-standalone-3.141.59.jar -role hub -port 4444
Nodes should register to http://192.168.0.4:44444/grid/register/
Client should connect to http://192.168.0.4:44444/wd/hub
1)Windows(Hub)-------------->Windows(Chrome) //using same machine as Hub and Node 2)Windows(Hub)-------------->Linux(Firefox)
java -Dwebdriver.chrome.driver="E:\javalearning\src\main\resources\webdriver\chromedriver.exe" -jar selenium-server-standalone-3.141.59.jar -role node -hub http://192.168.153.1:4444/grid/register/