What is the Page Object Model and Page Factory?

Pooja
Pooja

Posted On: Apr 08, 2020

 

Page Object Model (POM) is a design pattern, prevalently employ in test mechanization that creates an Object storehouse for web UI elements. It is a method to analytically sort out the scripts in such a way that it makes it effortless for the QA to uphold the code, free of hassles. And to help prevent redundant or duplicate code. The advantage of this model is that it reduces code duplication and develops test maintenance making it more readable, and reusable.

The Page Object Pattern using Page Factory can be made non-frail test code. It helps to reduce and further abolish the replica test code. Besides that, the page factory is useful in improving readability making it easier to create interface documentation.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Cognizant Testing Interview Questions

    Explain what is STLC?

    STLC stands for Software Testing Life Cycle. STLC happens to be a series of different actions implemented by the examination team to guarantee the condition of the product or the software. As promptly...

    Cognizant Testing Interview Questions

    What is syntax to Initialize browser in webdriver?

    By following the below-mentioned steps one may initiate browser in web driverAction 1: Download Chrome Drive Action 2: Unlock any browser and access http://www.seleniumhq.org/download/ Here you w...

    Cognizant Testing Interview Questions

    What is use of driver.getTitle() in selenium?

    driver. getTitle() process will capture the current started page heading and later it will be saved in a variable and next it will be published in the console. Presently you can utilize its usefulness...