Understanding the node

As our hub is up and running, it's now time to start a node and connect it to the hub. In this example, we will configure a macOS machine that has Chrome installed on it. So, if any test script requests the hub for a macOS platform and Chrome browser, the hub will choose this node. Let's 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-3.12.0.jar –role node –hub http://192.168.0.101: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 ...

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.