Part 4: Waits In Selenium: Fluent Wait

Hello Folks, We have covered below types of waits present in Selenium WebDriver: Thread.sleep() Implicit Wait. Explicit Wait Consider below scenario: You are testing Flipkart home page. Flipkart lists top items at home page which includes electronics, furniture etc. Now scenario is you need to find first 10 mobile displayed at home page. First of

Read More

Frequently Asked Java Program 04: Java Program to Extract Numbers From String and Add

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a java program to extract numbers from a string. Write a JAVA program for below requirements: Take an alphanumeric string from user. Verify if it is alphanumeric. If it is alphanumeric, extract all numbers present

Read More

How to handle StaleElementReferenceException Through Page Object Model(POM)

Hello Folks, This is on demand post. Many people asked me how to handle StaleElementReferenceException through Page Object Model(POM). So thought of writing a simple post on it. I am trying to automate below steps: Load URL “https://github.com/login”. Type wrong username. Type wrong password. Click on submit. Type correct username. Type correct password. Click on submit.

Read More

Part 3: Waits In Selenium : Explicit Wait

Hello Folks, We have covered below types of waits present in Selenium WebDriver in older posts: Thread.sleep() Implicit Wait. In this post, we will learn Explicit Wait. Implicit wait is wait which is set for a session of WebDriver and it will just make WebDriver to wait till it finds the web element. But there

Read More

Frequently Asked Java Program 03: Java Program to check if any string is palindrome Using inbuilt Reverse method of Java

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced,  in this post we will see a Java program to verify if a given string is palindrome using inbuilt reverse method. WHAT IS PALINDROME STRING? A palindromic string is a string that remains the same when its characters are reversed. For

Read More

Frequently Asked Java Program 02: Java Program to Check if Any String is Palindrome Without Using Reverse Method

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced,  in this post we will see a Java program to verify if a given string is palindrome without using inbuilt reverse method. WHAT IS A PALINDROME STRING? A palindromic string is a string that remains the same when its characters

Read More

Frequently Asked Java Program 01: Java Program to Check If a Given Number is Palindrome

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a java program to check if a given number is palindrome. Palindrome program is a frequently asked programming interview question to both freshers or experienced in interviews. We will going to learn that in

Read More

Part 2: Waits in Selenium: Implicit Wait

Hello Folks, In last post, we have learnt about Thread.sleep() method. In this post we will learn: What is implicit wait? How to use implicit wait? What is behavior of implicit wait when element is found before specified time? What is behavior of implicit wait when element is not found and specified wait time expires?

Read More

Part 1: Waits In Selenium WebDriver: Thread.sleep()

Hello Folks, In this post we will learn: Why we need to use wait statements in selenium webdriver. Types of waits in selenium webdriver. What is Thread.sleep() and how to use it. Disadvantages of Thread.sleep() method. “Waits” are very important concepts in Selenium WebDriver. Understanding of types and usages of waits are necessary to write perfect

Read More

Method 2: getCssValue() : What, When and How to use?

Hello Folks, In last post, we have seen about getAttribute(). In this post we will learn about getCssValue() method. This post covers: What is getCssValue() method? Why we use getCssValue() method? How to use getCssValue() method? What is difference between getAttribute() and getCssValue() methods. Let’s start with basics. What is CSS: Cascading Style Sheets (CSS) is a

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.