Advanced Selenium Concepts – Custom Select Class – Select Value Containing Specific Text in Drop down

Hello Folks, Most of us we know that to handle a dropdown developed using Select tag, we can use inbuilt class of Selenium named “Select” class. This class provides you three methods to select options in dropdown which are below: selectByValue – You need to provide exact value to get it selected. selectByVisibleText – You

Read More

Advanced Xpath Concept – Method normalize-space & Its Usage

Hello Folks, In this post we will going to learn an advanced concept of xpath: – normalize-space method.  Before we discuss about method normalize-space, we will see why do we require that. Consider below html codes: <anyTag>   Make       Selenium      Easy </anyTag> (Inner text has more white spaces among words than normal.)  It

Read More

Object Repository in Selenium Using Page Factory With Inner Class – Handling a Page Which Has Many Webelements

Hello Folks, You must have seen a web page which contains many divisions or multiple web elements and similar web elements in multiple divisions. Creating a web element repository for such pages is difficult in some cases which are given below: If you have many web elements in a page, Selecting desired web elements while

Read More

TestNG Tutorials 52: DataProvider in TestNG – Accessing DataProvider Methods From Another Class Test Class

Hello Guys, Now we have good understanding of DataProviders in TestNG from previous articles. If you have not read my previous posts on DataProvider, you can go through them below: Why do you need DataProvider? How does DataProvider work? DataProvider with 2D array You can notice in all previous posts that I kept DataProvider methods

Read More

Frequently Asked Java Program 21: Java Program to Find & Print All Special Characters with Their Positions in a String

This programming interview question was asked in Yodlee.  Problem: Write a Java program to find and print all special characters with their positions in a user input string. Example: Input string: Make%Selenium$Easy# Output: % at position 5. $ at position 14. # at position 19. Total special characters found:3 Solution: We will use regex to

Read More

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.