Get Tool Tip Text

This is a pre-built action in Avo Assure and is available for the @Custom Element. The functionality of this action in Avo Assure to fetch the tooltip text present on the objects specified in the input value and saves it in the given dynamic variable.

Syntax

Input Value:<ObjectType>;<VisibleText (optional)>;<Index>;<abs (optional)>

Argument
Description

<ObjectType> (Required)

Provide the object type to be verified (e.g., button, label, textbox)

<VisibleText>

(Optional)

Enter the visible text on the object

<Index>

(Required)

Provide the position of the element, which helps to identify the value based on the sequence in list . (starting from 0)​

<abs>

(Optional)

If the abs is provided, the action is performed with absolute identification using the absolute X path

Output Value

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable holds the result value fetched from the tooltip text

<Dynamic Variable> (Optional)

This dynamic variable holds the result in True or False

Example 1

Retrieves the tooltip text from the specified UI element

The Get Tool Tip Text action takes the value from the Input Value column (e.g., button;;1) and fetches the tooltip associated with the specified object. The result of the operation is stored in the {Tooltip} variable, while the execution status is stored in the {Status} variable, with the following possible values:

  • True – if the tooltip is retrieved successfully.

  • False – if the operation fails

Example 2

Retrieves the tooltip text from the specified UI element using optional parameter

The Get Tool Tip Text action takes the value from the Input Value column (e.g., button;Tooltip on end;1;//*[@id="btn2"]) and fetches the tooltip associated with the specified object. The result of the operation is stored in the {Tooltip} variable, while the execution status is stored in the {Status} variable, with the following possible values:

  • True – if the tooltip is retrieved successfully.

  • False – if the operation fails

Last updated

Was this helpful?