Selenium and the Four Rules of Simple Design
summary
Live coding that starts with a single long brittle Selenium WebDriver Java test and iteratively refactors it into focused helpers, renaming driver→browser, extracting setup, extract search_product and locate_product, and committing each small change with tests run so the suite stays green. Demonstrates applying the Four Rules (tests pass, express intent, no duplication, small), pushes the refactored code to GitHub, and leaves a partially completed but working page-object extraction ready for followup.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 0:20Four rules of simple design
- 2:12Testing and clear intent
- 6:33Avoiding duplication
- 8:24Refactoring for simplicity
- 11:34Live coding demonstration
- 17:51Refactoring and naming
- 26:16Extracting methods
- 35:24Finalizing the design
related talks
39mSelenium and the Four Rules of Simple Design
34mOne Step at a Time
46mTest Automation with Selenium WebDriver, Java, and JUnit
34mUsing Selenium to Improve a Team's Development Cycle
42mReliable and Maintainable Webdriver Tests
37mSelenium In the Enterprise: What went right, what went wrong (so far)
41mFunctional Tests (Selenium) in Practice
38mFreeing up Selenium
