Wait for Condition

This node pauses the execution until either the given conditions apply, or until the specified timeout has elapsed. If the condition does not apply within the given timeout, the node execution will either (a) fail completely, or (b) branch into the second output port, depending on the configuration.

To perform a simple check of the conditions without any wait, set the “Wait time” to zero.

The node creates the following flow variables:

  • numMatched - the number of rows which matched the condition
  • hasMatched - boolean flag to indicate that at least one row matched the condition
  • numUnmatched - the number of rows which did not match the condition
  • hasUnmatched - boolean flag to indicate that at least one row did not match the condition

These flow variables can be useful for controlling loop behavior (e.g. if you loop a paginated list and want to stop the loop once there’s no more pages). See “Variable Condition Loop End” node.

Options

WebDriver
The WebDriver for which the conditions should be checked.
Wait time
The time to wait in milliseconds.
Poll interval
The polling interval for checking the condition in milliseconds.
Branch instead of fail
If enabled, the node will not fail if a condition is not met within the given time; instead it will output the resulting rows to the second output port which allows to add specific logic.

Input Ports

Icon
The condition to check
Icon
Input table

Output Ports

Icon
Rows of the input table where the given condition matched
Icon
Rows of the input table where the given condition did not match

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.