selenium-webdriver Selenium Grid Configuration Creating a Selenium Grid hub and node

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Creating a hub

A quick configuration for a hub and node setup in selenium grid. For more information see: Grid 2 docs

Requirements

To set up a grid hub you need the flowing:

Creating the hub

To Create a Hub you need to run the selenium server.

  1. Download Selenium-server-standalone-.jar
  2. Open your terminal and navigate to the folder where Selenium-server-standalone-.jar is
  3. Execute the folowing command:
    1. For default configuration java -jar selenium-server-standalone-<Version>.jar -role hub
    2. For Json configuration java -jar selenium-server-standalone-<Version>.jar -role hub -hubConfig hubConfig.json
  4. Open http://localhost:4444/ you will see a message a follows

enter image description here

On clicking console -> View config for to view the Configuration for the hub details.

Creating a Node

Requirements

To set up a grid hub you need the flowing:

Creating the Node

Now To create Nodes for the Hub

  1. Download Selenium-server-standalone-.jar
  2. Download the browsers you want to test in
  3. Download the drivers for the browsers you want to test in
  4. Open new terminal and navigate to the selenium server jar file location
  5. Execute the folowing command:
    1. for default configuration java -jar selenium-server-standalone-<VERSION NUMBER>.jar -role node
    2. For Json configuration java -jar selenium-server-standalone-<Version>.jar -role node -nodeConfig nodeConfig.json
  6. Now go to http://localhost:4444/grid/console to view the node details


Got any selenium-webdriver Question?