# Get Text IRIS

This is a pre-built action available under the **Captured Element** from the **Desktop Application** using the **IRIS method**. The functionality of this action in Avo Assure to get text from the IRIS object and save the result in the output variable. &#x20;

### **Syntax**

**Input Value:** `<options>`&#x20;

| Argument                           | Description                                                                                                                                                                                                   |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<options></p><p>(Optional)</p> | <p>Specially this field is usually left <strong>empty</strong>, but it supports <strong>optional instructions</strong> to modify how the text is retrieved.</p><p>Options supported -  Trim, Formatting .</p> |

**Output value:**

| Argument                                    | Description                                                     |
| ------------------------------------------- | --------------------------------------------------------------- |
| <p>\<Dynamic Variable></p><p>(Required)</p> | This dynamic variable holds the retrieved text from object      |
| <p>\<Dynamic Variable></p><p>(Optional)</p> | This dynamic variable holds the status as **True** or **False** |

**Example 1**

**Fetches the text content of the specified IRIS object with additional options**

The **Get Text IRIS** action takes the value from the Input Value column (e.g., **Trim**) and retrieves the text of the captured object while applying the selected option (e.g., trimming leading and trailing spaces). The result of the action is stored in the **{GetTextIris}** variable as (**Login Button**)

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

**Example 2**

**Fetches the text content of the specified IRIS object without additional options**

**Fetches the text content of the specified IRIS object**\
The **Get Text IRIS** action takes no input value and retrieves the visible text from the selected IRIS object on the screen. The result of the action is stored in the **{Get Text}** variable as (**Login**)

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

<figure><img src="/files/AU9hhKaOBwIPMI7aRRJo" alt="" width="375"><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/desktop/iris/common-iris-keywords/get-text-iris-1.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.
