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.

members only

Keep reading with the full course

The Foundations track and the first 5 lectures of each framework are free. This lecture is part of the paid course, which unlocks every lecture, all three frameworks, and downloads.

See the options →