Wait Nodes
Browser NodePause workflow execution until conditions are met
Overview
Wait nodes allow you to pause your workflow execution until certain conditions are met. This is essential for handling dynamic web pages, loading states, and asynchronous content. Prompteryx provides several types of wait functionality to cover different scenarios.
Wait Types
Element SelectorThe element to wait for. Use the crosshair button to pick visually, or enter a CSS selector.
.loading-complete, #results, getByRole('button', { name: 'Submit' })StateWhat element state to wait for: Visible (can be seen), Attached (in DOM), Hidden, or Detached.
VisibleTimeout (ms)Maximum time to wait before giving up and failing the node.
30000MillisecondsHow long to wait in milliseconds. Enter the number directly (e.g., 2000 for 2 seconds).
2000 (2 seconds), 5000 (5 seconds)Prefer Conditional Waits
urlPatternA glob pattern with wildcards (e.g. **/dashboard), or plain text — plain text matches any URL that contains it
**/dashboard, https://example.com/*, /checkout/successtimeoutMaximum time to wait
30000JavaScript ExpressionExpression that evaluates to truthy when the condition is met. No "return" keyword needed.
document.querySelectorAll('.item').length >= 10Polling Interval (ms)How often to check the condition in milliseconds
100timeoutMaximum time to wait
30000urlPatternURL pattern to wait for (supports wildcards)
**/api/orders*, https://example.com/**timeoutMaximum time to wait
30000Usage Examples
**/dashboard.loading-spinnerdocument.querySelectorAll('.list-item').length >= 10