World’s largest virtual agentic engineering & quality conference
Selenium 4 explained: what changed from Selenium 3, W3C WebDriver compliance, relative locators, Selenium Manager, and how to upgrade your existing tests.

Shahzeb Hoda
Author
Published on: November 18, 2025
Last Updated on: January 12, 2026
Selenium 4 is the current major version of Selenium. It was announced in 2018, spent three years in alpha and beta, and shipped as stable 4.0.0 on 13 October 2021; the line has been updated steadily since. The headline change is W3C WebDriver compliance, which removed the JSON Wire Protocol translation layer and made cross browser tests less flaky. This tutorial walks through what changed, how to upgrade from Selenium 3, and how to use the features Selenium 4 added.
In this chapter, we will cover in detail how to upgrade from Selenium 3 to Selenium 4 for Java language bindings. Apart from Java, it is easy to upgrade to Selenium 4 for Selenium supported languages like Python, C#, PHP, Ruby, and JavaScript. Ready to upgrade?
SEE MORE →The most significant change in Selenium 4 is W3C compliance of WebDriver APIs, which boils down to less flaky and more stable cross browser tests. In this chapter, we will cover some of the significant enhancements in Selenium 4 in detail. Also, we will cover some of the features that are deprecated and changed in this newest version. Checkout the blog to learn more!
SEE MORE →In this chapter, we will show you how to install Selenium 4 for Python. Also, we walk you through the Python Selenium 4 features and how you can use those features in your Python Selenium tests.
SEE MORE →Selenium users can expect less flaky, more consistent, and more stable Selenium automation testing with WebDriver W3C protocol in Selenium 4. Though JSON Wire Protocol will retire in Selenium 4, the possibility is that your tests might be using W3C protocol even though they are not tested on Selenium 4. This is because the WebDriver W3 protocol is available in Selenium v3.8 onwards. Read the blog to learn more!
SEE MORE →Selenium 4 introduced a new type of locator called the relative locator. It lets you find an element by its position next to another element, so developers can reach nearby web elements with fewer lines of code. Read the blog to see how to use it in your test cycles.
SEE MORE →Author
Shahzeb Hoda is the Associate Director of Marketing and a Community Contributor at TestMu AI, leading strategic initiatives in developer marketing, content, and community growth. With 10+ years of experience in quality engineering, software testing, automation testing, and e-learning, he has authored and reviewed 70+ technical articles on software testing and automation. Shahzeb holds an M.Tech in Computer Science from BIT, Mesra, and is certified in Selenium, Cypress, Playwright, Appium, and KaneAI. He brings deep expertise in CI/CD pipeline automation, cross-browser testing, AI-driven testing practices, and framework documentation. On LinkedIn, he is followed by 3,700+ engineers, developers, DevOps professionals, tech leaders, and enthusiasts.
Did you find this page helpful?
More Related Blogs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance