Wait for text to appear
Medium70 pts~25 min
- Explicit waits
- Text conditions
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
Wait for an element’s text to change to an expected value.
Your task
- 1Open TEST_URL —
#dynamic-textreads “Pending”. - 2Wait until
#dynamic-textcontains “Ready” (about 2 s). - 3Assert the text is “Ready”.
Acceptance criteria
- A text condition is used
#dynamic-textreads “Ready”- 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