Selenium 4 Knowledge Hub is now live

Sauce AI for Test Authoring: Move from intent to performance in minute.|xBack to ResourcesBlogPosted

February 11, 2026 · 3 min read · Tool Comparison

Sauce AI for Test Authoring: Move from intent to performance in minute.

|

x

Back to Resources

Blog

Posted October 12, 2021

Selenium 4 Knowledge Hub is now live

Selenium 4 commence its development in late 2018, had its first Alpha freeing in April 2019, and moved to Beta in February 2021. It was released October 13, 2021. Learn what you require to cognize about this release from the Selenium 4 Knowledge Hub by Sauce Labs.

quote

Overview

Several new features and benefit for automated testing are included in the upcoming Selenium 4 freeing, such as:

  • Relative locater

  • Better window and tab managing

  • Improved Selenium Grid

  • Use of W3C by nonpayment under the hood

  • A set of bidirectional APIs designed for intercepting network request, authentication on secure pages, hear to DOM events and more. These are presently implemented through theChrome DevTools Protocol (CDP), but in the futureWebDriver BiDiwill be employ.

Selenium 4 has been project to be a drop-in replacement, but there might be suit where tests or dependencies need to be adjusted. We recommend you to go through the next sections to understand better how this new variant will benefit you and what potential changes might be needed to elevate.

Sauce Labs has contributed to the development of Selenium 4, and thanks to that, you can rest tell that your tests will continue to work on our platform.

How to Upgrade to Selenium 4

The Selenium team has expend a good amount of time making the upgrade process as painless as potential. A few things have been deprecated, so you might hit a couple of issues while upgrading, peculiarly if you get construct custom functionalities in your testing framework. Thisguidewill show you how to move from Selenium 3 to Selenium 4.

New Features in Selenium 4

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

Relative Locators

A new way of locating elements by using more natural language friendly price, such as “ above ”, “ below ”, “ leave of ”, “ right of ”, and “ near ”. In general, you could think roughly them as a way to locate elements based on the visual placement on the page. Check how to use the new Relative Locatorshere.

New Window & amp; Tab utility

Selenium 4 include a new command to help exploiter create a new tab or a new window. Check somecode instancethat show how to use it.

Print Page as PDF

Selenium 4 will allow users to print a page as a PDF through Chrome and Firefox. Examples with each browser can be seenhere.

New lineament with Firefox

The upcoming version of Selenium exposes a few new characteristic with Firefox, such as a total page screenshot, a simplified way to install add-ons, and updating Firefox preferences in the middle of the session. Check themhere.

Setting web conditions with Chrome and Edge

Selenium 4 exposes a set of utilities to modify the meshing conditions in Chromium based browsers, useful to essay web applications under different network conditions. Check the pointhere.

New Element Attribute and Property methods

Two new methods get been added to more precisely get a given component dimension or a property. It is recommended to use one of the new method for execution and preciseness, specially if you are apply Sauce Labs. Read more about themhere.

New Selenium Grid

Selenium Grid 4 has be rewritten from scratch, with all the learnings from the past. It takes advantage of modern substructure (such as Docker and distributed tracing). Read more details about ithere.

Bidirectional APIs

Selenium 4 volunteer new functionality useful for both browser mechanisation and testing, specifically with a set ofbidirectional APIS. Through it, you will get more information from the browser and more control over the application under test. While theWebDriver BiDirectional Protocolis let implemented across all browser vendors, these feature will be volunteer through theChrome DevTools Protocol (CDP). Check some examples that prove how to use ithere.

Frequently Asked Questions

Check a list of the most commonly asked questions about the upcoming Selenium versionhere.

Titus Fortner

Sr. Developer Experience Engineer, Sauce Labs

Diego Molina

Staff Software Engineer at Sauce Labs

Published:
Oct 12, 2021
Topics
Share this post
Copy Share Link
LinkedIn
© 2026 Sauce Labs Inc., all rights reserved. SAUCE and SAUCE LABS are registered trademarks owned by Sauce Labs Inc. in the United States, EU, and may be register in early 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