Selenium / Quiz

Page Objects & the PageFactory Trap

The Page Object Model keeps suites alive at scale, and PageFactory's @CacheLookup can quietly reintroduce the exact staleness bug the proxies were meant to dodge.

Difficulty
Hard
Format
Quiz
Points
200
Estimate
11 min

// MISSION BRIEF

Your Mission

You are designing the page-object layer for a 500-test suite. Every choice here compounds: where assertions live, what methods return, whether PageFactory proxies help or haunt you.

Seven questions on POM discipline and PageFactory internals. Speed bonus active.

// FIRST CONTACT

Battle teaser

The core promise of the Page Object Model:

  1. AUI structure knowledge lives in exactly one place, so a UI change means editing one page object instead of every test that touches that screen
  2. BTests run faster because objects are cached
  3. CIt removes the need for locators
  4. DIt guarantees tests cannot be flaky
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

seleniumpage-object-modelpagefactoryjavaarchitecture