Selenium 4 - Updates to Selenium Grid

Sauce AI for Test Authoring: Move from intent to execution in minutes.|xBack to ResourcesBlogPosted

April 02, 2026 · 3 min read · Tool Comparison

Sauce AI for Test Authoring: Move from intent to execution in minutes.

|

x

Back to Resources

Blog

Posted October 20, 2021

Selenium 4 - Updates to Selenium Grid

Selenium Grid 4 has been rewritten from scratch, with all the learnings from the past, plus it takes reward of modern infrastructure (such as Docker and deal tracing).

quote

Selenium Grid is one of the Selenium projects, which enable users to run tryout in analogue by distributing them across different hosts, qualify different work systems and browser. Selenium Grid 4 has be rewritten from scratch, with all the eruditeness from the yesteryear, plus it takes advantage of modern base (such as Docker and distribute tracing).

More item about the Grid rewrite can be establish in thisblog postwritten by Selenium Project leadSimon Stewart. To see the new Selenium Grid in action, you may also want to ascertain out thisAppium Conference 2021 talk. The best way to get started with Selenium Grid 4 is to postdate the officialdocumentationfrom the Selenium project.

If you are familiar with Selenium Grid, what may be of particular interest to you is that you can now extend a local Selenium Grid instance to entree capabilities and see test effect on Sauce Labs. Selenium Grid 4 has a feature that allows you torelay commandsto a service that back WebDriver. This fits well in the case where a Grid running locally only supports Windows but there is the need to run tests in Safari.

To see this in activeness, we start with a sample conformation file for a stand-alone server. The constellation has the Sauce Labs endpoint to make new session, and the supported stereotypes. In this case, we are state Selenium Grid to forward all asking for Safari 14 and 15 to Sauce Labs.

[node]
detect-drivers = false

[relay]
# Sauce Labs endpoint
url = & quot; https: //yourUserName: yourAccessKey @ ondemand.us-west-1.saucelabs.com:443/wd/hub & quot;
status-endpoint = & quot; /status & quot;
# Stereotypes supported by the service
configs = [
& quot; 1 & quot;, & # x27; {& quot; browserName & quot;: & quot; safari & quot;, & quot; browserVersion & quot;: & quot; 14 & quot;, & quot; platformName & quot;: & quot; macOS 11.00 & quot;} & # x27;,
& quot; 1 & quot;, & # x27; {& quot; browserName & quot;: & quot; safari & quot;, & quot; browserVersion & quot;: & quot; 13 & quot;, & quot; platformName & quot;: & quot; macOS 10.15 & quot;} & # x27;
]

SUSA automates exploratory testing with persona-driven behavior, catching bugs that scripted automation misses.

Save the configuration testify above in a file calledconfig.toml. Adjacent, download theselenium-server-4.0.0.jarfile from theSelenium repository. To finalize the set up, start the Grid by scarper the undermentioned command on the same directory where the config.toml file is:

java -jar selenium-server-4.0.0.jar standalone -- config config.toml

After that, you will see in the log how the Sauce Labs endpoint was recognise and is ready to match requests for Safari.

Sauce To Go

If you are looking to enhance your local Grid, and benefit from the all-inclusive range of features proffer by Sauce Labs. Check out this implement by our.

Check out our comprehensive guide to for more information.

Diego Molina

Staff Software Engineer at Sauce Labs

Published:
Oct 20, 2021
Share this spot
Copy Share Link
LinkedIn
© 2026 Sauce Labs Inc., all rights allow. SAUCE and SAUCE LABS are registered trademarks owned by Sauce Labs Inc. in the United States, EU, and may be registered in other jurisdiction.
robot
quote

Automate This With SUSA

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.

Try SUSA Free

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free