Header Ads

ad728
  • Breaking News

    What is Page Object Model (POM) and its advantages?



    Page Object Model is a design pattern for creating an object repository for web UI elements. Each web page in the application is required to have its own corresponding page class. The page class is thus responsible for finding the Web Elements in that page and then perform operations on those web elements. 

    The advantages of using POM are: 
    - Allow us to separate operations and flows in the UI from verification 
    - improves code readability 
    -Since the Object Repository is independent of test cases, multiple tests can use the same object repository
    -Reusability of code

    1 comment:

    1. Page Object Model is a design pattern for creating an object repository for
      web UI elements.

      ReplyDelete