Everything you want to know about Page Object design pattern (Mikalai Alimenkou, Ukraine), part 2
summary
Live coding demonstrates TDD-driven generation of Page Objects and their methods, with a Yahoo example comparing treating widgets as reusable components versus keeping a monolithic page object. The talk explains PageFactory caching behavior, argues that properly typed elements and component libraries (html element, Serenity, EPAM) reduce duplication and improve test reliability, and warns that poor programming skills or overcomplicating POs can lead to huge, fragile page object classes.
AI-written summary · about
chapters (11)
- 0:00Page Object intro
- 1:48Page Object structure
- 4:36Splitting pages into widgets
- 7:33Page Elements approaches
- 11:17Page Elements classification
- 16:09Encapsulating logic in elements
- 22:11Page Object templates
- 26:30Caching and element init
- 30:02Ready element libraries
- 37:24Page Object drawbacks
- 40:25TDD-driven Page Objects
related talks
40mPage Objects: Keep It Simple and Better!
39mBeyond Page Objects
31mIn the Footsteps of Martin Fowler: Extending the Scope of the Page Object
37mKISS PageObjects
47mOn the Other Side of Page Object
55mVersioned Page Objects: How to handle 12 versions of webapp
14mUsing the Page Object Pattern
48mDesign patterns to boost your test automation
