Hello Folks, We have seen Page Object Model in previous posts and you must be noticing that we are writing locators within code. It has its own disadvantages as below: For any modification in locator, you must need to touch the code. Difficult for manual tester or beginner in automation testing to find out correct … Continue reading Creating Object Repository In Selenium WebDriver Using Properties File As An External Source
Hello Folks, We have seen Page Object Model In Selenium. In this post, I will explain a way ( Mostly what I have seen in many selenium frameworks) to design a proper page object model. It is also asked in interview that if you have implemented encapsulation and abstraction in selenium framework. This post might … Continue reading Creating Object Repository In Selenium WebDriver Without Using Any External Data Source
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 … Continue reading Is Page Object Model a selenium framework?
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 … Continue reading How To Establish Relationship Between Pages In Page Object Model In Selenium WebDriver
Hello Folks, In this post, we will see what is difference between Page Object Model and Page Factory in Selenium WebDriver. This is also a very frequently asked interview question. Before we proceed. first go through to below posts: Introduction of Page Object Model Plain Page Object Model Page Factory After reading above posts, you … Continue reading Difference Between Page Object Model And PageFactory 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 … Continue reading Is It Possible To Use Page Factory Without FindBy In Selenium WebDriver?
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 … Continue reading How Page Factory In Selenium WebDriver Performs Lazy Initialization
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 … Continue reading Page Factory In Selenium Webdriver: Inbuilt Page Object Model Of Selenium
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 … Continue reading Plain Page Object Model In Selenium Webdriver (Without PageFactory)
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 … Continue reading Introduction Of Page Object Model In Selenium WebDriver: Advantages And disadvatages