lecture 7 of 160 completed

Page object patterns beyond the basics

Loadable components, fluent chaining, and inheritance versus composition. Basic POM does not survive two hundred pages.

What you'll learn

  • How a page proves it actually loaded
  • When fluent chaining helps and when it hurts
  • Why composition beats deep inheritance

Basic page objects hold locators and methods. That works for twenty pages. At two hundred, three problems appear that the basic pattern has no answer for.

Problem one: a page object hands you an object for a page that has not loaded.

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →