Description
Thewait 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
| Argument | Type | Default | Description |
|---|---|---|---|
timeout | number | 3000 | The duration in milliseconds to wait. |
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 atimeoutoption 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.

