1. Selenium Grid 4 using Docker - Getting Started
Описание
git location: https://github.com/atulsharmacsk/SeleniumGridDocker
Selenium Grid 4 with Docker
Components/Architecture: Refer to the above video for details.
Roles:
Standalone-Combines all Grid components seamlessly into one.
Hub and Node-Hub on 1 machine with all components & Separate nodes
Distributed- All components on different machines.
https://www.selenium.dev/documentation/grid/getting_started/
Choosing a grid role-
Requirements : No of test cases, time taken
Infra support:Creating sessions concurrently relies on the available processors to the Distributor. For example, if a machine has 4 CPUs, the Distributor will only be able to create up to 4 sessions concurrently.
By default, the maximum amount of concurrent sessions a Node supports is limited by the number of CPUs available. For example, if the Node machine has 8CPUs, it can run up to 8 concurrent browser sessions (with the exception of Safari, which is always one). Additionally, it is expected that each browser session should use around 1GB RAM.
In general, it is a recommended to have Nodes as small as possible. Instead of having a machine with 32CPUs and 32GB RAM to run 32 concurrent browser sessions, it is better to have 32 small Nodes in order to better isolate processes. With this, if a Node fails, it will do it in an isolated way. Docker is a good tool to achieve this approach.
- 5 or less Nodes- Standalone/hub-node
- 6 to 100 node - hub/node
- 100 above node -distributed
Quick Demo-
- Start a Docker container with Firefox
docker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-firefox:4.10.0-20230607
- Point your WebDriver tests to http://localhost:4444
- To see what is happening inside the container, head to http://localhost:7900/?autoconnect=1&resize=scale&password=secret.
Рекомендуемые видео







![slasherMNS 2.4. findme vs Кирпич [Bladerunner Duo]](/images/video/2026-07-02/aa/7d/aa7da1d5790aa824a267d4b7a9e37a87.jpg?width=640)
![slasherMNS 2.4. findme vs Talion [Outrunner]](/images/video/2026-07-06/60/1f/601faae808c1b7cc234feacb6b2b038e.jpg?width=640)
![slasherMNS 2.4. findme vs Tipochek [Outrunner]](/images/video/2026-07-15/a2/23/a2233dae9500fc6fbd5059bd0588dbd1.jpg?width=640)

![slasherMNS 2.4. Две игры: findme vs Satonir [Bladerunner Duo]](/images/video/2026-06-29/33/35/333562191cebe19bcb45605de6113465.jpg?width=640)





![slasherMNS 2.4. findme vs Tipochek [Котовасия]](/images/video/2026-07-10/7b/90/7b90d2fde09eedee8e892f04265a8e36.jpg?width=640)

