9
The Ancient Spell Book – Building the Page Object Model
All frameworks have three to four abstraction layers. This might best be visualized as a book of ancient spells. The easiest incantations are at the beginning. These are building blocks for more complex and powerful enchantments in the middle. And the darkest secrets are always at the end of the cryptic grimoire. Similarly, there is the Test layer, which calls upon the methods referencing objects in the middle Page Object Class layer, which in turn utilizes helper wrappers and other functionality at the bottom-most Core layer. In a Cucumber framework, there is an additional abstraction layer from the Test Feature File layer to the step definitions to the Glue code to the core code layer. ...
Get Enhanced Test Automation with WebdriverIO now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.