As our hub is up and running, it's now time to start the node. Here, my node is a Mac OS X platform with Chrome, Firefox, and Safari installed on it. So, if any test script requests the hub for a Mac OS X platform, the hub will choose this node. Let us see how we can start the node. The command to start the node and register with the hub is as follows.
java –jar selenium-server-standalone-2.33.0.jar –role node –hub http://172.16.87.131:1111/grid/register
This will start the Selenium server in the node mode and register this node with the already started hub. If you go back to the Grid Console on the browser, you will see the following screenshot:
The preceding screenshot shows the node URL http://172.16.87.1:5555, which in this case is running on the MAC platform. By default, the number of browsers listed for every node is 11: five for Firefox, 5 for Chrome, and 1 for IE. This can be overridden by specifying the -browser
option, which we will see in the Configuring...