Automation lab Aú Error Handling & Resilience (ERROR_RESILIENCE)
Lab 051: Offline banner when network is lost
Practice offline banner when network is lost in a real web app context as part of the Error Handling & Resilience module.
advanced
advanced
Objectives
Use for test scripts- Understand the purpose and business flow of offline banner when network is lost.
- Design stable locators for key UI elements.
- Automate user interactions and verify the resulting UI state.
Sandbox
Error Handling & Resilience / error-handling / advanced / active
Offline banner when network is lost
Toggle network loss and display a sticky offline banner.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Detect network loss flag.
- Show/hide offline banner.
- Disable fetch button while offline.
Steps
- Toggle offline mode.
- Confirm banner appears and button disables.
- Go online and fetch data.
You are offline. Some features are unavailable.
Idle
Assertions to practice
- Banner visible when offline toggle checked.
- Fetch disabled offline; enabled online.
- Status reflects offline/online fetch attempts.