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.
Loadable components, fluent chaining, and inheritance versus composition. Basic POM does not survive two hundred pages.
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
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 →