Wait Context
Waits for a Java UI element or window to become available using the Java Access Bridge.
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
- Window Title - The title of the target window containing the Java application.
- Window Handle - The handle (HWND) of the target window.
- Full Path - The full path to the target element in the Java application's accessibility tree.
Options
- Wait Timeout (sec) - The maximum time (in seconds) to wait for the element or window to become available. Default is 30 seconds.
Output
This node does not produce any output values.
How It Works
The Wait Context node interacts with Java applications through the Java Access Bridge to wait for a UI element or window to become available. When executed, the node:
- Gets the Window Title, Window Handle, and Full Path from the inputs
- Uses Helper.WaitForContext to wait for the specified Java context to become available
- If a Full Path is provided, it waits for the specific element to be available
- If no Full Path is provided, it waits for the window to be available
- If the element or window is found within the timeout period, the node completes successfully
- If the element or window is not found within the timeout period, an appropriate error is thrown
Requirements
- Java Access Bridge must be enabled in the target Java application
- The target Java application must be running and accessible
- Valid Window Title and Window Handle for the target window
- Valid Full Path to the target element (if waiting for a specific element)
Error Handling
The node will return specific errors in the following cases:
- Window not found within the specified timeout period
- Element not found within the specified timeout period
- General exceptions during execution
Usage Notes
- Ensure the Java Access Bridge is properly configured in your Java application
- The Full Path should be obtained using Java accessibility tools or by inspecting the application's accessibility tree
- The default timeout of 30 seconds can be adjusted based on application responsiveness
- This node is useful for synchronization in automation flows, ensuring elements are available before interacting with them
- If only waiting for a window, leave the Full Path input empty
- If waiting for a specific element, provide the Full Path to that element