Hopper Day – Exploring Selenium 4 Features

Today (09-Nov-2019) at Codoid, our automation testing experts have organized an internal workshop event to explore Selenium 4 salient features. R&D workshops of this kind is conducted every month and we named today’s workshop as ‘Hopper Day’.

At the end of ‘Hopper Day’ event, we will publish our findings in the form of a blog article which will immensely benefit the Software Testing Community.

Why we named it as ‘Hopper day’?

Grace Hopper was an American computer scientist. She was a pioneer of computer programming and created a compiler which converted English terms into machine code understood by computers. Without her contributions to the computing world, modern programming wouldn’t have been in existence. Her contribution is an infinite source of motivation for today’s tech community. In all these R&D workshops, as a leading automation testing company we aspire to contribute our ideas, findings, and innovations to the Software Testing Community.

Selenium 4 Features

Selenium 4 Features

In today’s Hopper Day event, we have explored the upcoming Selenium 4 features.

Full Page Screenshot

In Selenium 4, we can take full page screenshot using firefox driver.

Relative Locator

Relative Locator is a new way to find web elements, it helps us to find web elements based on their visual location relative to other elements.

Casting from Chrome

If you have ChromeCast, then you can mirror your Chrome Tab to another device using Local or Remote WebDriver.

Open New Window & Tab

In Selenium 4.0, you can open new window & tab using “newWindow” command.

Selenium Grid – Distributed Execution

Selenium Grid has only two components Hub and Node. On the other hand in Selenium Grid 4, we have four components namely – Router, Sessions Map, Distributor, and Node. Selenium 4 has introduced new architecture for Grid. Refer the following blog article for more details – Selenium Grid 4 – Distributed Execution.

Chrome DevTools Interface

You can retrieve Chrome Console logs using DevTools interface.

Docker Nodes

You can start Selenium Grid Nodes using Docker.

Detect Drivers

When you start Selenium Grid node, you no need to pass driver configuration variables as shown below.

In Selenium 4, you can download and save the required driver files inside the folder where you have saved Selenium Server.jar. The node initiating command will pick up the appropriate driver using –detect-drivers argument.

Leave a Reply

Your email address will not be published. Required fields are marked *