InterviewSolution
| 1. |
What do you understand about the Page Object Model in the context of Selenium? What are its advantages? |
|
Answer» Page Object Model (POM) is a design pattern that generates an Object Repository for web UI elements and is widely used in TEST automation. The paradigm has the advantage of reducing code duplication and IMPROVING test maintenance. According to this paradigm, each web page in the application should have its own Page Class. This Page class will identify the web page's WebElements and also has Page methods that OPERATE on those WebElements. The names of these methods should correspond to the tasks they perform, for EXAMPLE, if a loader is waiting for the payment gateway to appear, the POM method name could be waitForPaymentScreenDisplay(). Following are the advantages of the Page Object Model (POM) :
|
|