Features of Selenium 4.0.0 Release – Java Binding

An alpha version of Selenium is released as 4.0.0-alpha-1. As we were expecting a big changes in Selenium 4 it is not like that.

An alpha release is a release when the feature which you are developing is incomplete or partially complete. So when you are trying below features, may or may not work properly.

I am going to list out some new features of Selenium 4 for Java binding here:-

  1. Now you can launch a new tab and window and by default switch to it. “newWindow” method from “WebDriver” interface creates a new browser window and switches the focus for future commands of this driver to the new window.
  2. You can capture (Screenshot) a particular web element directly instead of capturing whole screen. Earlier it was possible by cropping it using dimensions.
  3. Selects class overrides equals() and hashcode() methods now.
  4. Location of safari driver now configurable using “webdriver.safari.driver” system property.
  5. Basic support for using Docker containers with the new Grid Server.
  6. Selenium Grid will be robust as new Grid Server, supports “standalone”, “hub”, “node”, and completely distributed usage.
  7. HtmlUnitDriver will not be default part of Selenium WebDriver now.

Reference: –
https://github.com/SeleniumHQ/selenium/blob/master/java/CHANGELOG

I will cover new features of Selenium 4 once a stable version is released.

#ThanksForReading

Author: Amod Mahajan

My name is Amod Mahajan and I am an IT employee with 6+ years of experience in Software testing and staying in Bengaluru. My area of interest is Automation testing. I started from basics and went through so many selenium tutorials. Thanks to Mukesh Otwani as his tutorials are easy and cover basics to advance. I have habit of exploring concepts by deep diving. I used to make notes. I thought of sharing my knowledge through posts and now I am here. #KeepLearning #ShareLearning

2 thoughts on “Features of Selenium 4.0.0 Release – Java Binding

  1. Hi Amod , Could you please explain about what is mean W3c Webdriver protocol in Selenium 4.0. and How it differs from Json wire protocol

Leave a Reply

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.
%d bloggers like this: