# verifyTextExist

This is a pre-built Action located under the **@Browser Element**. The functionality of this Action in Avo Assure is to check whether the specified input text exists on the Application Under Test (AUT). The result of this Action is stored in a dynamic variable for further use during test execution.

### Syntax

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

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;text><br>(Required)</td><td>Provide the input text to verify how many times it appears on the current page of the AUT.</td><td></td></tr></tbody></table>

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

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td><p>&#x3C;Dynamic Variable></p><p>(Required)</p></td><td>This dynamic variable stores the count of times the given text appears on the page.</td><td></td></tr><tr><td><p>&#x3C;Dynamic Variable></p><p>(Optional)</p></td><td>The dynamic variable stores the status as <strong>True</strong> or <strong>False</strong>.</td><td></td></tr></tbody></table>

### **Example: Verifying the Presence of Specific Text on a Web Page**

In this example, we explain how to verify whether a specified text is present on the current web page using the **verifyTextExist** action.

* **Action:** verifyTextExist
* **Input Value:** Avo Bank
  * The input value (**Avo Bank**) specifies the text whose occurrences are counted on the web page.
* **Output Value**: {TextFound}
  * The text count of occurrences (e.g., No. of occurrences of the text Avo Bank is 1 time(s)) is stored in this **{TextFound}** dynamic variable.
  * If a second output variable is provided, the action returns the status as True/False:
    * **True**: If the specified text is found on the web page.
    * **False**: If the specified text is not found on the web page.&#x20;
* **Logical Explanation**: The **verifyTextExist** action takes the value from the **Input Value** column ( **Avo Bank**) and searches for that text in the currently loaded web page. The count of occurrences is stored in the **{TextFound}** variable (e.g., No. of occurrences of the text Avo Bank is 1 time(s)).

<figure><img src="/files/LTopQeNTiZlg9TVKyNZ3" 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/browser/verifytextexist-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.
