Practice free →
HomeSoftware TestingSoftware Testingtools_automation_cicd › The Page Object Model (POM) design pattern in Se…

The Page Object Model (POM) design pattern in Selenium

AGenerates random test data automatically
BEncapsulates page UI in classes for reuse
CStores test results in object databases
DReplaces unit tests with end-to-end ones
Answer & Solution
Correct answer: B. Encapsulates page UI in classes for reuse
POM creates a class per page (or component) exposing methods that wrap UI interactions. Tests call high-level methods, not raw locators. Benefits: maintainability, reuse, reduced duplication when UI changes.
Solve this in the app — Software Testing practice & 24k+ MCQs →
Related questions