# 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                                                                                                               |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| <p>\<ObjectType><br>(Required)</p>     | Provide the object type to be verified (e.g., button, label, textbox)                                                     |
| <p>\<VisibleText></p><p>(Optional)</p> | Enter the visible text on the object                                                                                      |
| <p>\<Index></p><p>(Required)</p>       | Provide the position of the element, which helps to identify the value based on the sequence in list . (starting from 0)​ |
| <p>\<abs></p><p>(Optional)</p>         | If the **abs** is provided, the action is performed with absolute identification using the **absolute X path**            |

{% hint style="warning" %}
**Note:** *The user needs to provide the type of object, its visible text of the element (if needed), its element index, and the abs.*

*To skip an optional input value, use an extra semicolon (;).*
{% endhint %}

**Output Value**

| Argument                                 | Description                                                                |
| ---------------------------------------- | -------------------------------------------------------------------------- |
| <p>\<Dynamic Variable><br>(Required)</p> | This dynamic variable holds the result value fetched from the tooltip text |
| <p>\<Dynamic Variable><br>(Optional)</p> | 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&#x20;

<figure><img src="/files/TpRk8dEL1Tub4S11u9VW" alt=""><figcaption></figcaption></figure>

**Example 2**

**Retrieves the tooltip text from the specified UI element using optional parameter**&#x20;

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&#x20;

<figure><img src="/files/h367ABxdb5NPXr7GFv30" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/custom/get-tool-tip-text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
