Definition and Usage
Wait until a specified element or text appears or disappears from a web page. This command allows you to synchronize your workflow by pausing execution until certain content is detected or no longer present on a web page.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Web page | Select a variable that contains the web page to work with | - | Yes | - |
Wait for web page to | Wait for an element or text to appear or disappear from the web page | Contains element; Doesn't contain element; Contains text; Doesn't contain text | Yes | - |
Element | Select or capture an element to operate on | - | Yes (when element option selected) | Use the Capture button to select an element on the page |
Text | Enter the text to be examined if it is included on the web page | - | Yes (when text option selected) | - |
Set timeout | Set wait timeout | - | No | Checkbox option |
Timeout (s) | Specify the number of seconds to wait for the content to be loaded | - | Yes (when timeout enabled) | Default is usually 20 seconds |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
Store wait result into - Stores a boolean value indicating the result of the wait action. Returns 'true' if the element/text appears; 'false' if it times out.
Using Variables in Conditions
You can use the output variable in conditional statements to determine the next steps in your workflow based on whether the element or text was found within the specified timeout period. For example, you might use the result to decide whether to continue with a process or take an alternative path.
Notes
This command is particularly useful for handling dynamic web pages where content may load asynchronously.
If no timeout is set, the command will use the default system timeout value.
When waiting for text, the search is case-sensitive.
For more reliable results when waiting for elements, try to select unique elements with stable identifiers rather than elements that might change frequently.
The command will continue execution immediately once the condition is met, without waiting for the full timeout period.