Automation lab Aú State & Session Management (STATE_SESSION)
Lab 047: Polling and auto-refresh list every 5 seconds
Practice polling and auto-refresh list every 5 seconds in a real web app context as part of the State & Session Management module.
intermediate
intermediate
Objectives
Use for test scripts- Understand the purpose and business flow of polling and auto-refresh list every 5 seconds.
- Design stable locators for key UI elements.
- Automate user interactions and verify the resulting UI state.
Sandbox
State & Session / state / intermediate / active
Polling and auto-refresh list every 5 seconds
Start/stop polling that refreshes data every 5 seconds.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Start and stop polling loop.
- Verify refresh timestamp increments.
- Assert interval-based updates.
Steps
- Start polling; observe refreshes.
- Stop polling; timestamp stops changing.
- Restart polling; updates resume.
Practice sandbox
Polling interval: 5s
Not polling
Assertions to practice
- New timestamp appended every 5s while polling.
- No updates after stop.
- Status text reflects running/stopped.