~/talk

Beyond Page Objects

Talkat Selenium Conference 2011 · 2011-04-04..04-06· [frontend-architecture, testing]
links:none on file
slides:none on file

Argues that replacing monolithic page objects with page components (small classes for compressed/expanded views) plus a component Factory cuts duplication, models user focus via return types, and shrinks class size; demonstrates on a Pivotal Tracker–like rich app and recommends switching from Selenium 1 to WebDriver to avoid custom waits. Introduces an indexed locator class to generate nth selectors and stresses synchronization with explicit waits rather than sleeps, claiming noticeably more readable, maintainable, less flaky tests.

AI-written summary · about

  1. 0:00Intro
  2. 1:07Our Hero
  3. 1:59A Chance Encounter
  4. 2:27A New Weapon
  5. 2:39Engaging The Enemy
  6. 2:55Victory
  7. 3:15What's The Moral?
  8. 3:51The Details
  9. 5:01Why Page Objects?
  10. 6:05Readability
  11. 6:24Stay DRY
  12. 7:04Sensible Names
  13. 7:15Small Classes
  14. 7:58How Do We Get There?
  15. 9:13Context
  16. 9:53PRO TIP
  17. 10:22Page Objects Recap
  18. 10:58Page Object Benefits
  19. 12:33Example: Pivotal Tracker
  20. 15:25Modeling The UI
  21. 21:18Page Component Recap
  22. 24:28ComponentFactory Recap
  23. 26:29Indexed Components
  24. 29:25The Locator Class
  25. 30:14Using A Locator
  26. 31:07Synchronization Issues
  27. 32:40Use The Wait Class
  28. 33:08Two Options
  29. 34:06Next Issue
  30. 34:26Cleanest Solution
  31. 34:59Next Best Solution
  32. 36:06Final Thoughts
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.