Definition and Usage
Check if window contains specified content when previous conditions are false, and execute actions if true. This command serves as an alternative condition in an if-else structure, allowing you to create branching workflows based on the presence or absence of elements in a window.
Parameter Values
Input parameters
Parameter Name | Description | Possible Values | Required | Options / Notes |
Window | Select a window object that was obtained earlier |
| Yes | Must be a valid window object previously captured or selected |
Check if window | Check if window contains certain element | Contains element, Doesn't contain element | Yes | Determines whether to check for presence or absence of the element |
Element | Select or capture an element to operate on |
| Yes | Can be selected from existing elements or captured during configuration |
Variables produced
This action doesn't produce any variables.
Using Variables in Conditions
You can use variables in this command by inserting them into parameter fields. When you see a {x} icon or variable selector, you can click it to insert previously defined variables. For example:
You can use a variable that references a window object for the "Window" parameter
You can use element variables that were previously stored for the "Element" parameter
Variables must match the expected type for each parameter field. Ensure that window variables are used for window parameters and element variables for element parameters.
Notes
This command is specifically designed to be used after an "If" condition and/or other "Else if" conditions
It will only execute if all previous conditions in the if-else structure evaluated to false
You must have previously captured or selected both the window and element before configuring this command
The condition evaluates whether the specified element exists (or doesn't exist) within the selected window
This command is useful for creating complex conditional logic based on UI states