Grid Architecture Diagram
Here is a step-by-step guide to setting up and running tests on Selenium Grid.
Selenium Grid setup. The diagram below has three nodes. The hub forwards the test request to the nodes, and the actual test execution takes place at the matching node.
Selenium Hub
The hub is the central server that receives the requests to execute the tests.
Selenium Hub is a central point that controls the execution of tests on different machines and browsers. It allows tests to be executed on multiple Selenium nodes, enabling parallel and distributed testing.
Selenium Node
A Selenium node is a machine that runs the browser instances and tests controlled by the Selenium Hub. You can configure and run multiple nodes. Nodes allow distributed testing and increase the efficiency of test execution.
The hub forwards the request to the matching node, which executes the test. The grid setup can have multiple heterogeneous nodes.
- A node can run Chrome browser on Windows.
- Another node can run the Firefox browser on Linux.
- One node can run the Safari browser on a MacOS.
- Another node can be a mobile browser running on an Android device.
Selenium Grid Diagram
Sample testing using Selenium Grid Diagram: