What’s new in Selenium 4 – Key Features and Differentiators

Page 1

SELENIUM 4: ADVENT OF IMPROVED SELENIUM GRID AND KEY FEATURES INTRODUCTION Selenium 4 version comes with some exciting new features and when it comes to selenium webdriver, the WebDriver APIs are fully aligned with W3C compliance. This means the need for decoding and encoding API requests by the JSON wire protocol in selenium 3 and previous versions for communicating between test scripts and browsers is eliminated by standardization. This means that the target browser can interact directly with the WebDriver.

FOLLOWING ARE THE KEY FEATURES OF SELENIUM 4 ENHANCED DOCUMENTATION

DESIRED CAPABILITIES ARE DEPRECATED

There is a significant revamp of the documentation section with a nice UI for navigating to the desired page or section. Relevant information can be found by developers and testers pertaining to language binding, specific tools etc.The exhaustive documentation covers all the information about APIs and tools that come under the selenium framework. Testers will get well-acquainted with prerequisites and features to carry out automation testing efficiently.

The usage of desired capabilities was primarily in the test scripts so that the test environment (operating system, version, browser name) can be defined for the purpose of executing on Selenium Grid. In selenium 4, replacement of options is done with capabilities objects. This means that an Options object needs to be created by testers, then test requirements need to be set and then the object needs to be passed on to the Driver constructor.

THE TAB/WINDOW MANAGEMENT IS SCALED UP

IMPROVED SELENIUM GRID

A test automation scenario will have several instances, where a particular link needs to be opened by someone in a new window or tab to perform certain actions. In order to make this possible in Selenium 3, a new driver object needs to be created by the QAs and then the switch operation needs to be performed using the WindowHandle method to perform subsequent steps.

The previous versions of the selenium grid were complicated when it comes to setting up and inflexible in terms of scaling. It comes with Docker support. The containers can be spun by testers and developers rather than by setting up heavy virtual machines. It is redesigned in such a way that the grid on Kubernetes can be deployed by QAs for better scaling.

TestingXperts, 3rd Floor, Belmont Belmont Road Uxbridge, London UB8 1HE

Get in touch Info.europe@testingxperts.com https://www.testingxperts.com/


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.