Is Enabled
Checks whether a UI element is enabled or disabled.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Handle - The handle of the window containing the element.
- Window Selector - The selector for identifying the target window.
- Element Selector - The selector for identifying the target element.
Output
- Enabled - Boolean value indicating whether the element is enabled (true) or disabled (false).
How It Works
The Is Enabled node checks whether a UI element is enabled or disabled. When executed, the node:
- Uses the Window Selector and Element Selector to locate the target element
- Checks the IsEnabled property of the element
- Sets the output variable "Enabled" to true if the element is enabled, false otherwise
Requirements
- Both Window Selector and Element Selector are required to identify the target element
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid Window Selector or Element Selector
- Element not found
Usage Notes
- This node is useful for conditional logic based on the enabled state of UI elements
- Disabled elements typically cannot be interacted with (clicked, typed into, etc.)
- The output value can be used in decision nodes or stored for later use
- An element may be disabled due to application logic, user permissions, or other factors