Open the Waits & Timing practice page and complete these exercises. Each one teaches a different wait pattern you'll use in real projects.
- Click a button that shows a delayed element. Use WebDriverWait with visibilityOfElementLocated to wait for it. Verify the text.
- Try the same exercise with Thread.sleep(). Compare execution time — WebDriverWait should be faster.
- Wait for a loading spinner to disappear, then read the loaded content.
- Write a FluentWait that polls every 200ms and ignores StaleElementReferenceException.
- Create a custom ExpectedCondition that waits for an element's class attribute to contain "active".