Is It Possible To Use Page Factory Without FindBy In Selenium WebDriver?

Hello Folks, We are learning about Page Object Model in selenium in previous posts. This is another part of that. Selenium webdriver has inbuilt page object model which is called Page Factory where we write web elements(Page Objects) with it locators using annotation @FindBy. Does FindBy annotation mandatory for Page Factory? Answer is NO. We […]

How Page Factory In Selenium WebDriver Performs Lazy Initialization

Hello Folks, We have seen some posts on Page Object Model and Page Factory in Selenium in previous posts. We will see some interesting facts about Page Factory in this post. Do you know that Page Factor perform lazy initialization? We will see how. When we use “initElements” method of PageFactory, all page objects of […]

Page Factory In Selenium Webdriver: Inbuilt Page Object Model Of Selenium

Hello Folks, We have seen below topics as of now: Introduction of Page Object Model Plain Page Object Model In this post we will see inbuilt page object model in selenium webdriver. Selenium webdriver has inbuilt Page Object Model called Page Factory. It provides @FindBy annotation to create object repository. What is @FindBy annotation? Annotations […]

Plain Page Object Model In Selenium Webdriver (Without PageFactory)

Hello Folks, In last post, we have seen Introduction of Page Object Model in details. In this post we will see how to implement page object model in selenium webdriver. The main idea of POM is to separate web elements and test scripts to achieve one to many relationship. You define web element at single […]

Introduction Of Page Object Model In Selenium WebDriver: Advantages And disadvatages

Hello folks, In this post, we will see below topics: Why we need Page Object Model? What is Page Object Model and its advantages? Why we need Page Object Model? When you write a code, it must have below properties: Easy to understand. Easy modifications. Proper categorization. Anybody should be able to locate desired lines […]

Handling Javascript Alerts/Popups In Selenium Webdriver

Hello Folks, In last post, we have seen handing of website popups in selenium webdriver. In this post, we will see how to handle JavaScript popups in selenium webdriver. Types of JavaScript popups: There are three types of popups in JavaScript which are given below: Alert popup Confirm popup Prompt popup Alert popup: It is a simple […]

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.