Page Object Pattern
Implementing UI tests within a certain test method can become quite tedious. The automation platform queries and actions would, in fact, become closely coupled and unmaintainable. In order to avoid such scenarios, it is advised to use the Page Object Pattern (POP).
In POP, each view or distinct view element on the screen implements their own page class, which implements the interaction with this specific page as well as the selectors for the view components within this page. These interactions are implemented in a simplified, lexical manner so that the complex automation implementation behind the scenes is not reflected in the actual test implementation. In addition, for interactions and queries, the page object is also ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access