Month: September 2018

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 […]

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 […]

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 […]

TestNG Tutorials 51: DataProvider in TestNG – Two Dimensional Array DataProvider Method

Hello Folks, In last post, we have seen Basics of DataProvider in TestNG and its working logic with one dimensional array. In this post I will explain the working logic of a DataProvider method which returns a two dimensional array. I see people are always confused with the usage of a DataProvider method which returns […]

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 […]

TestNG Tutorials 50: DataProvider in TestNG – Understand Basics of DataProvider & How It Works

Hello Folks, In last post, we have seen Why do we need to use DataProvider in TestNG. Now we will see a serie of posts on DataProvider. What is DataProvider? DataProvider is an annotation to mark a method as data provider which provides data as an array of array of Objects which can be used […]

TestNG Tutorials 49: Need of DataProvider Method in TestNG

Hello Folks, TestNG provides a beautiful functionality to parameterized our configuration and test methods so that we can execute the same test script with different set of data. To make a method (Configuration and Test) parameterized , we use “Parameters” annotation. If we make a method parameterized, we must need to pass parameters values from […]

API Testing Tutorial Part 9 – Difference Between REST and RESTFul API

Hello Folks, As part of our API Testing series, we will see “Difference between REST and RESTFul API” in this post. This is frequently asked interview question in interviews and I see people are confused with terms. We will learn about them in a very easy way. You must go through with basics of REST […]

API Testing Tutorial Part 8 – Introduction to REST & REST API

Hello Folks, As part of our API Testing series, we will see below topics in this post: What is REST? Six principles of REST.   What is REST? REST stands for REpresentational State Transfer. It is an architectural style that defines a set of constraints to be used for creating web services or API. Web services which are […]

API Testing Tutorial Part 7 – HTTP Status Code Must To Be Remembered

Hello Folks, As part of our API Testing series, we will see some important HTTP status codes in this post. This topic is very important for API testing. It is a frequently asked interview question as well. “Status” is what for everyone cares as it says what is output either negative or positive or partially. […]

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.