Codekru

Boolean Wrapper Class in Java

Wrapper classes in Java help perform object operations that we normally cannot perform with primitive types. This post will discuss one such wrapper class, which wraps the boolean primitive value and helps us perform object operations whenever needed. Here, we are talking about the Boolean wrapper class of Java. The Boolean class is present in java.lang package. […]

Boolean Wrapper Class in Java Read More »

Guide to DataProviders in TestNG ( Data-driven testing )

Imagine testing a login functionality where you need to validate multiple username and password combinations. Writing separate test methods for each combination is not only tedious but also prone to redundancy and errors. This is where TestNG @DataProvider comes to the rescue, enabling you to supply test data dynamically and execute the same test logic

Guide to DataProviders in TestNG ( Data-driven testing ) Read More »

How to get the hidden text of an element in Selenium?

When working with Selenium automation, you might encounter scenarios where elements on the webpage have text that’s not directly visible in the browser but is still present in the DOM (Document Object Model). Accessing this hidden text can be important for validating data, debugging, or ensuring complete test coverage. In this article, we’ll explain why

How to get the hidden text of an element in Selenium? Read More »