wait
Pause the flow for a fixed time.
The wait command pauses the flow for a fixed number of milliseconds. Prefer extendedWaitUntil or waitForAnimationToEnd when you can wait for a condition, because a fixed pause is slower and less reliable.
Syntax
Give the duration in milliseconds, or use the map form with the standard step options.
yaml
- wait: 2000
# or
- wait:
duration: 2000
optional: trueParameters
| Parameter | Type | Description |
|---|---|---|
duration | Integer | Time to wait in milliseconds. It must not be negative. |
A value that is not a number, or a negative number, is a flow error.
Usage example
yaml
- tapOn: "Submit"
- wait: 1500
- assertVisible: "Thank you"