Wait for an element to be clickable
Medium70 pts~25 min
- Explicit waits
- Enabled state
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 a button that is disabled after page load to become clickable, then click it.
Your task
- 1Open TEST_URL —
#delayed-buttonis disabled for about 3 s. - 2Wait until
#delayed-buttonis clickable (enabled). - 3Click it and assert
#delayed-resultreads “Clicked after wait”.
Acceptance criteria
- A clickable/enabled condition is used
#delayed-resultreads “Clicked after wait”- 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