Grid allows you to :
Selenium Grid allows us to run multiple instances of WebDriver or Selenium Remote Control
in parallel. It makes all these nodes appear as a single instance, so tests do not have to
worry about the actual infrastructure. Selenium Grid cuts down on the time required to run
Selenium tests to a fraction of the time that a single instance of Selenium would take to run
and it is very easy to set up and use.
The Hub runs the test scripts on each Node depending on the test requests (Requesting specific set ups )
We first need to start the selenium server where we are going to run the tests.
java -jar selenium-server.jar -role hub
java -jar selenium-server.jar -role node -hub http://localhost:4444/grid/register