# Get element text

This is a pre-built Action located under the captured element from the Desktop Application. The functionality of this Action in Avo Assure is to fetch the text of the element captured from the Application Under Test (AUT). The extracted value is stored in the given dynamic variable for further use during test execution.

## Syntax

**Input Value**: `N/A`&#x20;

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Output Value**: `<Dynamic Variable>;<Dynamic Variable>(Optional)`&#x20;

<table><thead><tr><th valign="top">Argument </th><th valign="top">Description </th></tr></thead><tbody><tr><td valign="top"><p>&#x3C;Dynamic Variable></p><p>(Required)</p></td><td valign="top">This dynamic variable stores the extracted text from element.</td></tr><tr><td valign="top"><p>&#x3C;Dynamic Variable></p><p>(Optional)</p></td><td valign="top">This dynamic variable stores the status as <strong>True</strong> or <strong>False</strong>.</td></tr></tbody></table>

### **Example: Fetching Visible Text from a UI Element**

In this example, we are explaining how to retrieve the visible text from a captured UI element using the **Get element text** action.

* **Action**: Get element text
* **Input Value**: N/A
  * This action does not require any input value. It extracts the visible text from the specified element from the application.
* **Output Value**: {Get Text}
  * The retrieved text (e.g., Click the button!) is stored in the **{Get Text}** dynamic variable.
  * If a second output variable is defined, it stores the action status with the following possible values:
    * **True**: If the text is retrieved successfully.
    * **False**: If the text is not retrieved successfully.
* **Logical Explanation**: The **Get element text** action does not require any input value. It identifies the target element and fetches its visible text content. The text (Click the button!) is stored in the **{Get Text}** variable.

<figure><img src="/files/a7oJeeASU1KfT5eLUb7h" 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/desktop/element-1/get-element-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.
