Everything You Should Known About Selenium Grid - selenium webdriver tutorials

No introduction is needed for Selenium as it is the leading test automation tool in the world. More and more developers and testers are preferring selenium and it has increased the demand for experts in selenium.

Selenium is basically a test automation tool with several components. Important components of Selenium are:

  • Selenium IDE
  • Selenium Client API
  • Selenium Remote control (RC)
  • Selenium Webdriver
  • Selenium Grid

This article will discuss selenium grid in detail.

What is Selenium Grid

Selenium grid permits you to execute multiple tests on different computers against different browsers parallel. In other words, it allows running multiple tests at the same time on different machines, browsers, and platforms.

When you use Selenium-grid, one server will be converted to a hub and the tests contact this hub to get access to different browsers and platforms. This hub will have a list of servers providing access to different browser instances or webdriver nodes.


As multiple tests are possible at a time, the time consumption for executing tests is reduced considerably. As selenium-grid has the ability to run the tests on remote browser instances, the load of tests can be spread across different machines and platforms.

How to Work?

Selenium grid basically has two elements the hub and nodes. The first step in working with selenium-grid is to set up a hub and the nodes can be connected to them. Technically this process is known as registering nodes to the hub.

Selenium-grid is a built-in component in the standalone selenium server and in order to use it the latest version should be downloaded first. The next step is to set up a hub.

> java -jar selenium-server-standalone-2.47.1.jar -role hub
19:05:12.718 INFO – Launching Selenium Grid hub

The next step is to register nodes

> java -jar selenium-server-standalone-2.47.1.jar -role node -hub http://localhost:4444/grid/register
19:05:57.880 INFO – Launching a Selenium Grid node

This is a single node in the same machine but you can create as many modes as you want on different machines. You can mention an additional browser parameter to refine the list of available browsers. This will help you to access only those browsers which you prefer to access.

Now the grid is ready and you can start writing tests.

Selenium Grid Tutorials

Selenium is a part of Selenium testing suite and without learning selenium the course cannot be completed. There is no specific course for Selenium grid tutorial but everything about selenium grid will be taught in any selenium testing training course.

Leave a Reply

Your email address will not be published. Required fields are marked *