Automation lab Aú Error Handling & Resilience (ERROR_RESILIENCE)
Lab 053: Retry button when API times out
Practice retry button when api times out 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 retry button when api times out.
- Design stable locators for key UI elements.
- Automate user interactions and verify the resulting UI state.
Sandbox
Error Handling & Resilience / error-handling / advanced / active
Retry button when API times out
Simulate request timeout and allow retry to succeed.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Surface timeout error state.
- Provide retry action.
- Confirm success after retry.
Steps
- Trigger request (timeout).
- Click retry.
- Verify success state.
Practice sandbox
First call times out; retry succeeds.
Request timed out. Please retry.
Request succeeded after retry.
Idle
Assertions to practice
- Timeout shows error + retry button.
- Retry hides error and shows success.
- Status reflects both transitions.