QA Touch AI Test Management Tool

Accelerate your testing workflow with intelligent test case organization, seamless integrations, and AI-assisted insights. From planning to execution, QA Touch simplifies every step of your QA lifecycle.

QA - 4 all in one Platform

What are the key new features and improvements in Selenium 4?

In this article

Selenium 4 introduced several major updates that make it a significant improvement over previous versions:

  • W3C Standardization: WebDriver is now a W3C standard, which ensures more stable and consistent cross-browser testing. This means there’s a standardized communication protocol between the browser and the driver, leading to more reliable test automation.
  • Revamped Selenium Grid: Selenium Grid 4 has been completely rewritten. The setup is much simpler, with the Hub and Node components combined into a single JAR file. It supports modern technologies like Docker and Kubernetes for more scalable and flexible test infrastructure. It also now supports IPv6 and HTTPS.
  • Relative Locators: Also known as “Friendly Locators,” this new feature allows you to locate elements based on their visual proximity to other elements using methods like above(), below(), toLeftOf(), toRightOf(), and near(). This makes your locators more intuitive and robust.
  • Chrome DevTools Protocol (CDP) Integration: Selenium 4 provides native support for the Chrome DevTools Protocol, allowing advanced browser interactions like mocking geolocation, capturing network traffic, and simulating network conditions.
  • Simplified Window/Tab Handling: Selenium 4 introduced a new API to easily open new windows or tabs within the same session using driver.switchTo().newWindow(WindowType.TAB) or driver.switchTo().newWindow(WindowType.WINDOW)

Picture of Bhavani R

Bhavani R

Bhavani is the Director of Product Management at QA Touch and a seasoned leader in product management. With certifications as a Scrum Product Owner, Digital Product Manager, and Software Test Manager, Bhavani brings a wealth of expertise to her role. She also holds a Six Sigma Green Belt and has been a featured speaker at the Guild 2018 Conference. Her passion extends beyond product management to testing, blogging, reading, and cooking, making her a well-rounded leader with a keen eye for both technical and creative pursuits.

All Posts

Related Articles

Don’t just take our word for it.

QATouch is a leader in G2 market reports.