Use fluent wait with polling
Hard120 pts~45 min
- Fluent wait
- Polling
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
Poll a progress bar with a custom interval until it reaches 100%.
Your task
- 1Open TEST_URL and click
#start-process. - 2Configure a wait with a 10 s timeout and a 250 ms polling interval (FluentWait, poll_frequency, PollingInterval, or the pollTimeout argument of driver.wait).
- 3Wait until
#progress-barhas aria-valuenow “100”. - 4Assert
#process-completereads “Processing complete”.
Acceptance criteria
- A polling interval is configured
#process-completereads “Processing complete”- 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