Adding nodes to the hub

Problem

We can add nodes to the Selenium Grid Hub, now the hub is up and running. This recipe will describe how to launch Selenium instances and register them to the hub so it starts forming the grid op Selenium instances that we are expecting.

Prerequisites

Open the command prompt and navigate to the directory where we put the selenium-server-standalone file.

Solution

Enter something like the following command in the command prompt: java -jar selenium-server-standalone-.jar -role node -hub http://localhost:4444/grid/register -port 5556 We should see the following output in the console:

What has been done

The command above will register a node to the hub, which is fully backwards compatible with Selenium 1. We can see this node in the Hub Console:

We can add multiple operating systems to our Selenium Grid. This allows us to check, whether different versions of Firefox on different operating systems are showing the same behavior.

Adding nodes to the hub
1 vote, 5.00 avg. rating (92% score)