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
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.

