Selenium tests, the Object Oriented Way
summary
Claims an object‑oriented way to write Selenium tests in Java that turns many assertions into a one-line assertion by comparing value objects. Implements concrete classes like Image(source,width,height) and Module(image,text), uses Selenium to extract attributes, relies on IntelliJ to generate constructors, equals/hashCode and toString, and runs in minutes so a reusable suite appears in under an hour. Demonstrates failures showing exact differing fields and reuses objects across pages instead of repeating assertions.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 0:40Overview
- 5:35Create a simple object
- 6:27Create an image
- 7:25Expected vs actual image
- 7:50constructors
- 8:21generate constructor
- 10:20assert
- 11:57source
- 13:30properties
- 18:04testing the object
- 19:45testing the whole module
- 22:17running the test
- 23:40assertion error
- 25:02assert equals
- 26:07test module
- 28:05image constructor
- 29:49expected module
- 34:59reuse
related talks
46mTest Automation with Selenium WebDriver, Java, and JUnit
41mFunctional Tests (Selenium) in Practice
40mSelenium and the Four Rules of Simple Design
08mSpice Up Selenium Test Automation"
39mSelenide: Make Java UI Tests Great Again!
37mSelenium In the Enterprise: What went right, what went wrong (so far)
34mUsing Selenium to Improve a Team's Development Cycle
47mSCULPT! YOUR! TESTS!
