Assert a live-updating counter
Hard120 pts~45 min
- Live content
- Custom wait conditions
Practice app · People Directory
A sortable, filterable, paginated employee table and a live counter.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Verify a counter that changes every second without sleeping and without flaky exact-value assertions.
Your task
- 1Read #live-counter as an integer n.
- 2Use an explicit wait with a custom condition until the counter is at least n + 3.
- 3Assert the value increased and that a later read is never lower than an earlier one.
- 4Assert #row-count still reads “Showing 10 of 30” (the live updates do not disturb the table).
Acceptance criteria
- An explicit wait with a condition is used
- No fixed sleeps
- At least 2 assertions pass
Constraints
- Do not use fixed sleeps — synchronise with explicit waits.
Selenium WebDriver 4 · Selenium · Tables & dynamic content