Skip to content

Get Element Object (win)

Function Description

TIP

Get the specific data item of an element in the window, which can be used for content extraction and value setting automation operations

Get Element Object (win)

Configuration Item Description

General

Command Input

  • Window objectTWinObj: Enter a captured window object

  • Operation targetTTarget: Select the window element to operate on

  • Associated parent elementBoolean: Whether to associate with the parent element

  • Parent elementTTarget: Search for the target element within the specified parent element

Command Output

  • Save element object toTUiElement: This variable is used to save the obtained element object

Advanced

  • Delay Before(milliseconds)Integer: The waiting time before instruction execution

  • Wait for element to exist (milliseconds)Integer: Timeout for waiting for the target element to exist

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None