Skip to main content

Description

The wait method pauses test execution for a specified number of milliseconds before continuing. This is useful for adding delays between actions, waiting for animations to complete, or pausing for state changes to settle.

Syntax

Arguments

Examples

Best Practices

  • Use for simple delays β€” waiting for animations, transitions, or state changes after an action.
  • Avoid for element waiting β€” if you’re waiting for a specific element to appear, use find() with a timeout option instead:
  • Avoid excessively long timeouts to keep tests efficient.
  • Use sparingly β€” TestDriver’s redraw detection automatically waits for screen and network stability after each action.