How-to
Pause (waitForTimeout)
Pause (waitForTimeout)
A hard pause in milliseconds. Value is a number of ms. Use rarely: prefer waitForSelector or waitForURL.
Step model
action_name | waitForTimeout |
| Group | Wait |
| Target | Unused |
| Value | Required (duration_ms) |
| expected_value | Unused |
| TEST_ACCOUNT | Forbidden |
| Do not confuse with | waitForSelector, waitForURL |
Target/Value facts match the source-of-truth catalog and Autotest step.
Prerequisites
- You know why you cannot wait for a selector or URL instead.
Steps
- Add a
waitForTimeoutstep. - In Value enter duration in milliseconds, for example
500. - Source must be
INLINE. - Save.
The step is stored on the autotest. Next - neighbouring steps or autotest run creation.
Examples
Short animation pause
Fields in the UI:
| Field | Value |
|---|---|
action_name | waitForTimeout |
| Target | empty |
| Value | 300 |
| value_source_type | INLINE |
Step JSON fragment (copy-paste):
json
{
"action_name": "waitForTimeout",
"value_text": "300",
"value_source_type": "INLINE"
}Common mistakes
- Do not use 5000–30000 ms instead of waiting for an element - the scenario becomes brittle and slow.
- TEST_ACCOUNT is forbidden.
Screenshots
Screenshots of the step form for waitForTimeout will be added here in a later pass.
Did this page help?