Wait for an element to disappear
Medium70 pts~25 min
- Explicit waits
- Loaders
Practice app · Order Tracker
Asynchronous UI that appears, changes and disappears on timers — for explicit, implicit and fluent waits.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Synchronise on loaders going away before reading the result.
Your task
- 1Open TEST_URL and wait until
#page-loaderis invisible. - 2Click
#load-statusand wait until#spinneris invisible. - 3Assert
#order-statusreads “Shipped”.
Acceptance criteria
- An invisibility condition is used
#spinneris gone#order-statusreads “Shipped”- At least 1 assertion passes
Constraints
- Do not use fixed sleeps (Thread.sleep, time.sleep, Task.Delay, driver.sleep).
Selenium WebDriver 4 · Selenium · Waits & synchronization