Selenium Grid with Docker
What is Selenium Grid? Selenium Grid is a part of Selenium component which supports Distributed test execution and it will let us run our tests on Multiple Operating systems against different browsers simultaneously. Traditional Selenium grid steps are, 1.Start Hub and connect all the nodes to it using below commands Hub : java -jar selenium-server-standalone-3.xx.x.jar -role hub Node1 : java -jar selenium-server-standalone-3.xx.x.jar -role node -hub http://<systemip>:4444/grid/register -port 5556 -browser browserName=firefox Node2 : java -jar selenium-server-standalone-3.xx.x.jar -role node -hub http://<systemip>:4444/grid/register -port 5557 -browser browserName=chrome 2.Define the Desired capability to identify the OS platform and OS browser for execution DesiredCapabilities desCap = null; if(browser.equals("firefox")){ desCap=DesiredCapabilities.firefox(); desCap.setBrowserNa