Pause (time in ms)
Command value: pause
Waits a fixed number of milliseconds before the next step.
Fields
| Field | JSON property | Description |
|---|---|---|
| Pause Duration (ms) | value | Milliseconds to wait. Minimum 0, in steps of 100. Values below 50 are read as seconds. |
Usage
- Values of 50 and above are milliseconds, so 2000 waits 2 seconds. Values below 50 are treated as seconds, so 5 waits 5 seconds.
- Prefer the wait-for-element assertions, which continue as soon as the page is ready.
- Use a pause only for animations or timers with no visible end state.
Example step (JSON)
{
"command": "pause",
"value": "2000"
}Playwright equivalent
await page.waitForTimeout(2000);Common options
- Make this step optional (Continue on failure): when checked, a failure in this step is recorded and the test continues with the next step.
- Execute step when JavaScript returns true: runs the step only when the JavaScript condition returns true. Otherwise the step is skipped.
See conditional steps and variables for details.