Appear and disappear

Wait for elements to be added, become visible, or be removed. Don't use fixed sleeps.

#delayedElement#hiddenElement#vanishingElement
Not added yet.
I will be removed

State changes

Wait until clickable, until text matches, until an attribute changes.

#delayedInput#statusText#colorBox
Status: Idle
data-state="pending"

Loaders

Wait for the spinner to go away, a progress bar to finish, or a skeleton to be replaced.

#loadingSpinner#progressBar#userCard
No data loaded.
0%
Profile not loaded.

Unpredictable timing

A random delay, an element that re-renders (stale references), and an overlay that blocks clicks.

#randomResult#staleList li#blockedBtn
Waiting to start.
  • Apple
  • Banana
  • Cherry
Render count: 1
Not clicked.