Page Object Model in Selenium

Page Object Model in Selenium

What is Page Object Model?

Page Object model is an object design pattern to create Object Repository for web elements/objects (Ex: Links, Buttons, Edit boxes etc...).
Under this model, container classes for web elements are created that behave as object repositories.

Advantages of Page Object Model

• Centralized maintenance of elements/objects
• Reusability, reduces duplication of code
• It is Efficient and Scalable
• It makes the framework user friendly.

Disadvantages of Page Object Model

• Initial effort investment in development of Automation Framework is high.
• It is not a generic model, automation framework developed using POM approach is specific to the application. 

Implement Page Object Model

In this approach all pages web elements of the application and the user actions on these Web Elements are maintained as methods inside a class file.


Sir, i want to select a drop down value using Page Object Model framework. Could you please let me know how to do it.

Post a Comment