Overview
The Wait node pauses workflow execution until specific conditions are met. It supports waiting for fixed timeouts, element appearance, URL patterns, JavaScript conditions, and API response criteria. It’s essential for handling dynamic content, asynchronous operations, and timing control.Wait Types
timeout
Wait for a fixed duration.Duration in milliseconds to wait.
selector
Wait for an element to appear and become visible.Element selector to wait for. Supports variable interpolation.
Selector type:
css, xpath, text, getByRole, etc.Advanced selector modifiers.
Maximum time to wait for the element.
url
Wait for the page URL to match a pattern.URL pattern to match. Supports regex patterns.
Maximum time to wait for URL match.
condition
Wait for a JavaScript condition to become truthy.JavaScript expression to evaluate. When it returns a truthy value, waiting stops.
Maximum time to wait for the condition.
api-response
Wait for and validate an API response.Configuration for API response validation.Properties:
contextKey: Context variable containing the API responsecheckType: What to check -status,header,body-path,body-valuepath: JSON path or header name (for header and body-path checks)expectedValue: Expected valuematchType: How to match -equals,contains,startsWith,endsWith,regex
Configuration
Type of wait:
timeout, selector, url, condition, or api-responseIf
true, pauses execution indefinitely until user continues (debug mode). Not supported in parallel execution.If
true, timeout errors log warnings but don’t stop workflow execution.Retry Configuration
Enable automatic retry on failure.
Number of retry attempts.
Delay between retries in milliseconds.
Examples
Timeout Waits
Element Waits
URL Waits
Condition Waits
API Response Waits
Pause for Debugging
Debug Pause
With Retry
Resilient Wait
Fail Silently
Optional Wait
Common Patterns
Wait After Action
Wait for Multiple Conditions
Polling Pattern
Wait Strategies
| Strategy | Use Case | Example |
|---|---|---|
timeout | Fixed delays | Animation completion |
selector | Dynamic content | AJAX-loaded elements |
url | Navigation | Page redirects |
condition | Complex logic | Multiple element states |
api-response | API validation | Async operations |
Notes
The
selector wait type waits for elements to be both present in the DOM and visible on the page.JavaScript conditions in
condition type waits have access to the full browser context including window, document, and global variables.Best Practices
Related Nodes
- Navigate - Built-in navigation waits
- Verify Element - Element state verification
- Loop - Polling patterns
- JavaScript Code - Custom wait logic
