In this tutorial, we will learn about Selenium Grid 4.x distributed mode. This is a new mode introduced in Selenium Grid 4.0. Let’s see the different components and how to start them from the command prompt console.
There are different components in this mode that come into play. The new components in this mode are as follows:
- Event Bus
- Session Queue
- Session Map
Selenium 4 Grid Components
Event Bus is the communication channel for all grid components to interact with each other through internal messages. This is the first component that should be start for Selenium Grid to operate in the distributed mode.
Session Map is like a data structure that stores session id and the suitable worker node information.
Session Queue is a data structure that holds the session request is First In First Out order. (FIFO) Router adds the new request to the Session Queue and waits for the response.
Distributor component finds a suitable worker node to run the request. It stores the session id and the suitable worker node in the Session Map.
Router is the component that forwards the requests to the other components. This component is the entry component. Router receives all the requests.
Register a Selenium Node to the configuration
Check the grid console to check if the register was successful.
Selenium Tutorials on this website: