Singleton Design Pattern In Selenium WebDriver

Hello Folks, Today we will see implementation of Singleton design pattern in selenium webdriver. Before we learn about implementation in Selenium webdriver, we must know about Singleton pattern. Singleton Design Pattern: When we develop a class in such a way that it can have only instance at any time, is called Singleton design pattern. It

Read More

FindBys Annotation In Page Factory In Selenium WebDriver

Hello Folks, In this post, we will learn about another annotation in Page Factory called FindBys. Suppose, you need to find count of web elements who satisfy all below criteria: whose id is “ABC” whose name is “DEF”. whose xpath is “XYZ”. It will be difficult to write normally but @FindBys annotation makes it very simple for

Read More

FindAll Annotation In Page Factory In Selenium WebDriver

Hello Folks, In this post, we will learn about another annotation in Page Factory called FindAll. Suppose, you need to locate below web elements and find out counts: All web elements whose class name is “ABC”. All web elements whose id is “DEF”. All web elements whose linkText is “Sometext”. Generally you will write as

Read More

Why It Is Not Possible To Read Locators From External Sources In Page Factory Of Selenium WebDriver

Hello Folks, Many automation tester wants to read locators from external sources like database, properties file or excel sheets. Reading locators from external sources and using it in your program is very easy if we don’t use Page Factory. It becomes difficult because of @FindBy annotation. What is annotation in Java? Annotations in Java are

Read More

Is Page Object Model a selenium framework?

Hello Folks, In this post we are going to see a frequently asked Interview question in Selenium Webdriver which is below: “Is Page Object Model a Selenium framework??”. Answer is No. I have heard many answer that people have used POM Framework. Actually it is not a framework. POM is a design pattern which says

Read More

How To Establish Relationship Between Pages In Page Object Model In Selenium WebDriver

Hello Folks, In interview it is frequently asked question that “How To Establish Relationship Between Pages In Page Object Model In Selenium WebDriver”. It is very simple question but generally interviewee confuses. I will explain in a simple way in this post. What is establishing relations between pages? Suppose you have two pages, Page 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.