Selenium and the Four Rules of Simple Design
summary
Transforms a brittle Selenium test suite into a maintainable set of tests by applying four concrete rules: tests always pass (checks before and after each change), express intent (rename long method names into readable actions), no duplication (extract repeated strings and logic), and small (extract setup, search, locate, add to bag, assert helpers). The demo runs the suite, times are shown (around 12–19 seconds), commits after each refactor, and ends with helpers hiding Selenium details.
AI-written summary · about
chapters (24)
- 0:00Intro
- 0:45Welcome
- 1:45The Four Rules
- 3:25Test Process
- 4:41Expressing Intent
- 6:32No Duplication
- 8:02Small
- 10:00Handson
- 11:50Rename
- 14:00Intent
- 17:30Setup
- 19:00Build
- 20:50Browser
- 23:00Extract
- 24:00Close Browser
- 26:00Search
- 27:00Delegate
- 28:00For loop
- 29:00Locate product
- 31:00Extract product to shopping bag
- 32:00Extract assertion
- 35:00Express intent
- 36:00Test
- 38:00Calculation
related talks
40mSelenium and the Four Rules of Simple Design
37mSelenium In the Enterprise: What went right, what went wrong (so far)
34mOne Step at a Time
41mFunctional Tests (Selenium) in Practice
36m3 ways not to use Selenium
25mTest Craftsmanship: Clean code practices for Test Automation
34mUsing Selenium to Improve a Team's Development Cycle
44mHow to Stop Hating your Test Suite
