Back to Practice

Spinners & Wait

Spinners & Wait Conditions

Click the button and wait for the text to appear. The wait time is random (2-5 seconds).

QA Automation Helper

Target IDsKey Element IDs

#start-loader
#spinner
#delayed-text

Advance Testing Tips

  • Explicit Wait: Use WebDriverWait (Java) or expect().toBeVisible() (Playwright).
  • Condition 1: Wait for spinner to disappear (invisibilityOfElementLocated).
  • Condition 2: Wait for text to appear (visibilityOfElementLocated).
  • Bad Practice: Do NOT use Thread.sleep().