in Selenium by
webdriver selenium

▼ Show 1 Answer

0 votes
Page Object Model (POM) & Page Factory: Selenium WebDriver Tutorial

What is Page Object Model?

Page Object Model is a design pattern to create Object Repository for web UI elements. Under this model, for each web page in the application, there should be corresponding page class. This Page class will find the WebElements of that web page and also contains Page methods which perform operations on those WebElements.

Name of these methods should be given as per the task they are performing, i.e., if a loader is waiting for the payment gateway to appear, POM method name can be waitForPaymentScreenDisplay().
Learn More with Madanswer

Related questions

0 votes
asked Aug 22, 2019 in Selenium by john ganales