Category Archives: Selenium Java

Exception Tests

Selenium Java

A Complete Guide To Exception Tests In TestNG [With Examples]

This article is a part of our Content Hub. For more in-depth resources, check out our content hub on TestNG. While automating critical applications like banking apps, it’s important to implement error handling and validation checks to ensure that the application is secure and reliable for the bank’s customers.

April 14, 2023

view count50941 Views

Read time20 Min Read

AutomationSelenium JavaTutorial

How To Perform Local Website Testing Using Selenium And Java

Users expect new features and websites to be seamless and user-friendly when they go live. End-to-end website testing in local infrastructure becomes an unspoken critical requirement for this.

February 8, 2023

view count150434 Views

Read time15 Min Read

How To Automate Toggle Buttons In Selenium Java

Selenium JavaAutomationTutorial

How To Automate Toggle Buttons In Selenium Java

If you pay close attention, you’ll notice that toggle switches are all around us because lots of things have two simple states: either ON or OFF (in binary 1 or 0).

November 24, 2022

view count206649 Views

Read time13 Min Read

Fluent Interface Design Pattern in Automation Testing

Selenium JavaAutomationTutorial

Fluent Interface Design Pattern in Automation Testing

Recently, I was going through some of the design patterns in Java by reading the book Head First Design Patterns by Eric Freeman, Elisabeth Robson, Bert Bates, and Kathy Sierra.

October 27, 2022

view count294166 Views

Read time26 Min Read

How To Get Response Status Code Using Apache HTTP Client

Selenium JavaAutomationTutorial

How To Get Response Status Code Using Apache HTTP Client?

As an automation tester, many times we reminisce about what is going on behind the scenes after the URL is passed to the web browser. What happens once the browser requests to load a website, or how does it know whether its request has been accepted and is ready to be fulfilled or not.

July 11, 2022

view count516976 Views

Read time17 Min Read

How To Select Multiple Checkboxes In Selenium WebDriver Using Java?

Selenium JavaAutomationTutorial

How To Select Multiple Checkboxes In Selenium WebDriver Using Java?

Have you ever wondered how frustrating it would be if you had to log in each time you wanted to view your Facebook profile? Or in a multiple-choice question where you’d like to mark many options but can’t?

June 20, 2022

view count183204 Views

Read time15 Min Read

How To Use isDisplayed() In Selenium WebDriver

Selenium JavaAutomationTutorial

How To Use isDisplayed() In Selenium WebDriver

If you use Selenium WebDriver, you are probably aware that there are a number of common ways to loop through and interact with elements on a web page. Among them isDisplayed(), isEnabled(), and isSelected() methods. When a tester needs to ascertain the visibility scope of a web element, they can use these methods.

April 22, 2022

view count151931 Views

Read time14 Min Read

Handle Multiple Windows in Selenium

Selenium JavaAutomationTutorial

How To Handle Multiple Windows In Selenium WebDriver Using Java?

When automating any website or a web application in Selenium, you might have come across a scenario where multiple windows open within an application when a button is clicked, and appropriate action needs to be performed on the opened windows.

March 24, 2022

view count109319 Views

Read time12 Min Read

How To Run JUnit Tests In Jupiter?

Selenium JavaAutomationTutorial

How To Run JUnit Tests In Jupiter? [JUnit Jupiter Tutorial]

This article is a part of our Learning Hub. For more in-depth resources, check out our hub on JUnit Tutorial. JUnit Jupiter is a perfect blend of the JUnit 5 programming model and extension model for writing tests and extensions.

March 16, 2022

view count360985 Views

Read time12 Min Read

java event listener

AutomationSelenium JavaTutorial

How To Use Java Event Listeners in Selenium WebDriver

While working on any UI functionality, I tend to aspire for more and more logs and reporting. This happens especially when performing test automation on web pages. Testing such websites means interacting with several web elements, which would require a lot of movement from one page to another, from one function to another.

February 4, 2022

view count308565 Views

Read time13 Min Read