In order to use Selenium Grid, we require a .jar file, which has to be downloaded. The file is selenium-server-standalone-3.14.0.jar, and is available from https://www.seleniumhq.org/download/.
Follow the instructions below for setting up a hub
- Place the .jar file in a convenient location
- Navigate to that location in Command Prompt and type in the java -jar selenium-server-standalone-3.14.0.jar -role hub command
By giving this command, we are telling the standalone server to start a hub. The command prompt should display the following output:
In the browser, navigate to http://localhost:4444.
If you see the following screen, then everything is set correctly and you are ready to configure nodes to the hub:
This completes Selenium Grid's basic setup. We will configure nodes in a subsequent chapter.
This completes a very important chapter from a framework standpoint. We have laid the foundation for our framework in this chapter.