Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Month: March 2025

Java Programs – LeetCode – Ransom Note – Solution 1

https://leetcode.com/problems/ransom-note/ Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magazines; otherwise, it will return false. Each letter in the magazine string can only be used once in your ransom note. Example 1:…

Read More “Java Programs – LeetCode – Ransom Note – Solution 1” »

Uncategorized

Learn Selenium With Quiz – Basic Level 8 – CSS Selector

As a part of a Series of posts on Learn Selenium With Quiz, This set contains questions from CSS Selector concepts in Selenium WebDriver. I will suggest you to go through below link before taking up quiz: CSS Selector in Selenium WebDriver Quiz will be auto submitted once you answer all question. [wp_quiz id=”4636″] If you…

Read More “Learn Selenium With Quiz – Basic Level 8 – CSS Selector” »

Uncategorized

TestNG Tutorials 13: Can An Interface have TestNG Methods? If Yes, How To Execute Them?

Hello Folks, We talked about TestNG class in previous post. Can we declare and define TestNG annotated methods in an Interface? We will learn now. As per Java 8, An interface can have abstract methods, default methods and static methods. Let’s create an Interface with TestNG annotated abstract methods and observe what happens: An interface…

Read More “TestNG Tutorials 13: Can An Interface have TestNG Methods? If Yes, How To Execute Them?” »

Uncategorized

How To Sort List In Ascending & Descending Order Using Java Stream API?

Stream API feature was introduced in Java 8 but it is still confusing for many and also many have not even used it a single time. I will try to explain Java Stream concepts with simple examples in Learn Stream API in Java with Examples series. In this post, we will learn to Sort List In Ascending…

Read More “How To Sort List In Ascending & Descending Order Using Java Stream API?” »

Uncategorized

putIfAbsent() – A Method Of Map Interface In Java

Previously we saw an important method of Map interface named getOrDefault(). In this post, we will see another important method named putIfAbsent(). Let’s start with an example:- package Concepts; import java.util.HashMap; import java.util.Map; public class PutIfAbsentMethodExample { public static void main(String[] args) { Map dataMap = new HashMap(); dataMap.put(101,”Amod”); dataMap.put(102,”Swati”); dataMap.put(103,”Aaditya”); dataMap.put(104,”Animesh”); // If we…

Read More “putIfAbsent() – A Method Of Map Interface In Java” »

Uncategorized

Tools To Find XPath In Chrome Browser

Hello Folks, We have seen tools to find XPath in Firefox. Those tools were specific to Firefox browser. In this post, we will learn tools to find XPath in Chrome browser. Finding XPath without any tools: You can find XPath and CSS selector of any web element in chrome browser without any tools as well….

Read More “Tools To Find XPath In Chrome Browser” »

Uncategorized

REST Assured Tutorial 49 – How To Retrieve Single and MultiValue Headers From Response Using Rest Assured

As a part of End to End REST Assured Tutorial, in this post, we will learn to retrieve header values from response. When we send a request to a server using an API, the server sends some headers along with the response. We may need to assert those response headers as part of testing. To assert header…

Read More “REST Assured Tutorial 49 – How To Retrieve Single and MultiValue Headers From Response Using Rest Assured” »

Uncategorized

Advanced TestNG Tutorials 34: How To Pass a Group Name to be Run at Runtime in TestNG XML Using Beanshell

Hello Folks, In last post, we have seen how integration of beanshell and TestNg can help us to achieve “AND” and “OR” conditions with group names to be executed. Problem statement: You have created so many test methods with different groups. You do not need to run all group every time. You need to include…

Read More “Advanced TestNG Tutorials 34: How To Pass a Group Name to be Run at Runtime in TestNG XML Using Beanshell” »

Uncategorized

getAttribute() method in Selenium WebDriver – Why, What and How to use?

Selenium WebDriver provides an important method named “getAttribute(String attributeName)“. In this post, we will learn below topics:- What is getAttribute() method? Why we use getAttribute() method? How to use getAttribute() method? We will see a lot of examples as well. Let’s start:- A web developer defines attribute and properties to a web element to add…

Read More “getAttribute() method in Selenium WebDriver – Why, What and How to use?” »

Uncategorized

patch

Skip to content Hello Folks, As part of our API Testing series, we will see “Sending PATCH request in Postman”. First of all we… Hello Guys, Whether you are an API developer or tester, you must understand the difference between PUT and PATCH http… Let’s start with a real time example. You must have heard about Facebook….

Read More “patch” »

Uncategorized

Posts pagination

Previous 1 … 5 6 7 … 24 Next

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark