Steps involved in Selenium Grid implementation
--------------------------------------------------------------------------------
Step 1: Creating Hub
Goto Command Prompt, then type
java -jar <Sele..jar file path> -role hub
Step 2: Create Node/s to execute TestCases in diff Browsers
2.1 Configure Node to execute TestCases in firefox browser
java -Dwebdriver.gecko.driver=<geckodriver.exe filepath> -jar <sele jar file
path>
-role webdriver -hub http://192.168.0.110:4444/grid/register -port 5555
-browser browserName=firefox,maxInstances=10
2.2 Configure Node to execute TestCases in Chrome Browser
java -Dwebdriver.chrome.driver=<chromedriver.exe file path> -jar <sele jar
file path>
-role webdriver -hub http://192.168.0.110:4444/grid/register -port 6666
-browser browserName=chrome,maxInstances=5
-----------------------------------------------------------------------------------
--
Script
DesiredCapabilities cap=null;
cap=DesiredCapabilities.chrome();
cap.setBrowserName("chrome");
cap.setPlatform(Platform.WINDOWS);
URL huburl=new URL("http://192.168.0.110:4444/wd/hub");
RemoteWebDriver driver=new RemoteWebDriver(huburl, cap);
driver.get("http://orangehrm.qedgetech.com");