Make Selenium Easy – Page 18

Problem Statement: Input: make selenium easy Output: Make Selenium Easy Convert first character of each word into upper case. Solution: Logic: A sentence is a collection of words generally separated by a white space. We can extract words of given sentence using split method.  Now extract first character of first word and check if it … Continue reading Frequently Asked Java Program 24: Java Program to Capitalize First Character of Each Word in a String Sentence

Hello Folks, Previously, I had published on Handling StaleElementReferenceException using PageFactory. But many people asked how to handle it if they do not use Page Factory design pattern. Understand StaleElementReferenceException through an image: You would have seen so many explanations of StaleElementReferenceException. I would like to explain in very simple words here. You mostly encounter StaleElementReferenceException when you … Continue reading Ways of Handling StaleElementReferenceException Without PageFactory

Hello Guys, As I say always, your automation script is ineffective if you do not include logic to validate to make sure the desired action has been performed by Selenium script. For Example – You have a dropdown in your application. Manually you verify if dropdown contains desired options or it s sorted. Generally while … Continue reading How to Verify if Options in Dropdown are Sorted as Expected In Selenium WebDriver – Java

“How much Java I need to learn for selenium with Java binding?” is mostly asked question by a Professional who wants to learn Selenium with Java. If you want to put a cap on knowledge, you will be always an average knowledgeable professional. Selenium with Java binding is a Java library which means it has … Continue reading How Much Java Required For Selenium?

Hello Guys, You should not be able to type alphabets or special characters in a field which supposed to accept only numbers. Manually you can type alphabets or special characters and verify. But in automation it is little tricky. Your application developer might restrict alphabets and special characters by setting value of “type” attribute of input … Continue reading How To Verify If An Input Box Accepts Only Numbers Through Selenium

Hello Folks, Recently a guy asked me this question which he was asked in an interview in IBM. What the ways to test maximum character limit of an input box through Selenium? To achieve this in Selenium, we have two ways: Suppose maximum character limit of an input box is 10 characters. Type more than … Continue reading How To Verify Maximum Character Limit of an Input Box Through Selenium

Hello Folks, As part of our API Testing series, we will see “Sending GET request with params in Postman”. In last post, we saw how can we send a GET request to list all users. It simply list all users. What if we want to list users based on some conditions? For E.g. List all users whose … Continue reading Postman Tutorial Part 4 – Sending GET Request With Params in Postman

We have learnt in previous posts regarding establishing relationship between test methods. You can go through them below: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnMethod Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnGroup Before we learn about types of dependencies in TestNG, lets see one scenario first: If … Continue reading TestNG Tutorials 62: Dependency in TestNG – Types of Dependencies in TestNG – Hard Dependency & Soft Dependency

In previous post, We have learnt to Establish dependency among test methods. In this post, we will see another concept in Dependency called DependsOnGroup. Consider a scenario: You have created automation scripts for Integration testing. We know that in integration testing, data flows from one module to another. You divide your test methods as per group. … Continue reading TestNG Tutorials 61: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnGroup

We are going to see another important concept or feature provided by TestNG. This feature is called as Dependency. Suppose, we need to post a status on Facebook. Let’s write a Test Case for it: Step 1: Launch browser. Step 2: Launch Facebook url. Step 3: Create an account on Facebook. Step 4: Post a … Continue reading TestNG Tutorials 60: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnMethod