Test Automation / Quiz
Page Objects at Scale
Component objects, assertion placement, layering, and the God-object rot that turns a tidy POM into a second legacy codebase.
- Difficulty
- Medium
- Format
- Quiz
- Points
- 150
- Estimate
- 10 min
// MISSION BRIEF
Your Mission
The Page Object Model works beautifully at 10 pages and collapses into a 3,000-line HomePage class by page 60, unless somebody holds the architectural line.
This quiz covers POM at scale: component decomposition, where assertions live, method altitude, and the smells that predict collapse. Framework-agnostic; the same rules govern Selenium, Playwright, and Appium suites.
Speed bonus active.
// FIRST CONTACT
Battle teaser
The navbar, cookie banner, and data grid appear on 30 pages. Modeling them as:
- APart of a BasePage god-class every page inherits
- BComponent objects (widget classes) that page objects compose, one implementation, reused everywhere
- CCopy-pasted methods in each of the 30 page classes
- DRaw selectors inline in the tests, components are too small for classes
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
test-automationpomtest-architecturemaintainabilitye2e-testing