Skip to content

Get Associated Element (win)

Function Description

TIP

Get the associated element of an element in the specified window (parent, child, adjacent elements)

Get Associated Element (win)

Configuration Item Description

General

Command Input

  • Window objectTWinObj: Enter a captured window object

  • Operation targetTTarget: Select the window element to operate on

  • Association methodInteger: Select the association method for the element

  • Child element acquisition methodinteger: Child element acquisition method

  • Child element positionInteger: Index position within the parent element, starting from 0

  • Adjacent directioninteger: Select the adjacent direction

Command Output

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

  • Save window element list toTList<TUiElement>: This variable is used to save the obtained element object list

Advanced

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

  • Wait for element to exist (milliseconds)Integer: Timeout for waiting for the target associated 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