InterviewSolution
| 1. |
Explain Page Object Model in Selenium? |
|
Answer» Page Object MODEL is an Object Repository design Pattern most commonly used in Selenium Test Automation. It is primarily used for enhancing test MAINTENANCE and reducing code duplication. Page object model (POM) can be used in any type of framework - modular, data-driven, hybrid framework or keyword driven, etc. A page object is an object-oriented class that serves as an interface to a page of the Application Under Test (AUT). The tests USE these methods of page object class whenever they NEED to interact with the UI of that page. The benefit is that if there is a UI change, there is no need to change the tests only the code WITHIN the page object needs to be changed. |
|