Handling Frames/IFrames In Selenium WebDriver : Part 1

Hello Folks, In this post, we will learn :Handling Frames/IFrames in Selenium webdriver". What is Frame in HTML? HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document. A frame can be created using <frame> tag in html. The <frame> tag is not supported in … Continue reading Handling Frames/IFrames In Selenium WebDriver : Part 1

Understanding NullPointerException And How To Avoid It In Java/Selenium

Hello Folks, Very common question asked by people: "I am getting NullPointerException in automation script. I am correctly using selenium concepts but unable to resolve it." So, in this post, we will see what is reason behind above exception and how to solve it. What is NullPointerException? When we declare a reference variable, internally a pointer … Continue reading Understanding NullPointerException And How To Avoid It In Java/Selenium

Difference Among isDisplayed(), presenceOfXXX() and visibilityOfXXX() Methods In Selenium Webdriver

Hello Folks, We generally used some methods for Eg. isDisplayed(), presenceOfXXXX(), visibilityOfXXXX() etc while developing test scripts.  All methods look similar but do you know there are some differences among them. We will learn about those differences in this post. isDispalyed(): This method checks whether or not the element is displayed in visible area of … Continue reading Difference Among isDisplayed(), presenceOfXXX() and visibilityOfXXX() Methods In Selenium Webdriver

Java Program 13: Java Program To Find If Given Numbers Are Coprime

Problem: Write a Java program to find if given two numbers are coprime. Solution: Definition of coprime: As per Wikipedia, In number theory, two integers a and b are said to be relatively prime, mutually prime, or coprime (also written co-prime) if the only positive integer (factor) that divides both of them is 1. Consequently, any prime number that divides one does not divide the other. This is equivalent … Continue reading Java Program 13: Java Program To Find If Given Numbers Are Coprime

Frequently Asked Java Program 12: Java Program To Find Divisors Of Given Number

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 Find Divisors Of Given Number. Problem: Write a JAVA program to find the divisors of a given number. Solution: Divisor is a number that divides  another number without a reminder or a number … Continue reading Frequently Asked Java Program 12: Java Program To Find Divisors Of Given Number