Page Sections Instead of Objects
summary
Advocates replacing coarse page objects with small page regions that group related elements so tests can query containers not just lists. Using Ruby and Watir and the open source ferris repo, the FAQ example shows eight questions and ten answers until regions reveal ten question/answer containers and identify which index lacks a question or answer. Works with singular sections like a header, gives namespaced elements and RSpec-friendly failures that pinpoint the bad index.
AI-written summary · about
related talks
21mWriting Declarative, Maintainable Integration Tests Using Page Objects
39mBeyond Page Objects
18mImproving Page Object
40mPage Objects: Keep It Simple and Better!
32mWhere did the OO go? Views Should be Objects Too!
33mRefactoring Volatile Views into Cohesive Components
55mVersioned Page Objects: How to handle 12 versions of webapp
32mComponent-based Architectures in Ruby and Rails
