The Selenium Grid hub

Selenium Grid works by having a central point that tests can connect to, and then commands are pushed to Selenium Server nodes that are connected to the hub. The hub has a web interface that tells you about the Selenium Server and the browser instances connected to the hub, and if they are currently in use.

Launching the hub

Now that we are ready to start working with Selenium Grid, we need to set up the grid. This is a simple command that we run in the console or Command Prompt.

  1. Open Command Prompt or a console.
  2. Run the following command:
    java -jar selenium-server-standalone-x.xx.xx.jar -role hub
    
  3. When that command executes, you should see something like the following screenshot:
  4. We can see that this is running in Command Prompt ...

Get Learning Selenium Testing Tools - Third 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.