Selenium 4 Is Releasing Soon

Selenium 4 is releasing soon. Some major changes in the upcoming Selenium version 4 have been revealed. It’s time to get ahead of the curve and figure out what is going to be changed, added, and deprecated.

We will take a look at a few important features and give some insight on updates you can expect for your automation framework.

1- W3C WebDriver Standardization

The Selenium 4 WebDriver will be completely W3C Standardized. The WebDriver API has grown to be relevant outside of Selenium. It is used in multiple tools for automation.

For example, it’s used heavily in mobile testing through tools such as Appium and iOS Driver. The W3C standard will encourage compatibility across different software implementations of the WebDriver API.

2- Selenium 4 IDE TNG

Selenium IDE support for Chrome is in the bucket. As we all know, Selenium IDE is a record and playback tool. It will now be available with much richer and more advanced features, such as

  • New plugin system – Any browser vendor will now be able to easily plug into the new Selenium IDE. You can have your own locator strategy and plug in the Selenium IDE.
  • New CLI runner – It will be completely based on node.js, not the old HTML-based runner. It will have the following capabilities:
    • WebDriver Playback – The new Selenium IDE runner will be completely based on WebDriver.
    • Parallel execution — The new CLI runner will also support parallel test case execution and will provide useful information like time taken and a number of test cases passed/failed.

3- Improved Selenium Grid

Those who have worked with Selenium Grid know how difficult it is to set up and configure. Selenium Grid supports test case execution on different browsers, operating systems, and machines, providing parallel execution capability.

In Selenium 4, the Grid experience is going to be easy and smooth. There will not be any need to set up and start the hub and node separately. Once we start Selenium Server, the Grid will act as both hub and node.

Selenium 4 will come up with a more stable Selenium Grid in terms of removing all thread-safety bugs, and better support for Docker.

4- Better Selenium Grid UI

Selenium 4 will come with a more user-friendly UI for Grid, with relevant information about sessions running, capacity, etc.

5- Better Observability

Observability, logging, and debugging are no longer confined to DevOps in recent times. As part of this release, request tracing and logging with hooks will be improved so as to provide automation engineers a hold on debugging.

6- Refreshed Documentation

Documentation plays a key role in any project’s success. The Selenium docs had not been updated since the Selenium 2.0 release. In the latest upgrade, Selenium’s documentation is also going to be refreshed and detailed. You can access it here.

Selenium 4 in a Nutshell

Upgrading to the latest version of Selenium should not require any code changes. Setting up nodes and hubs will become smooth and the entire grid experience is going to be streamlined.

For automation engineers, the latest version should not be challenging and existing automation frameworks should work with minimal changes.

Here’s a video from Selenium Conference 2018, held at Bangalore recently:

more info:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.