# 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FWA3MveIAmJ1MwbuXSsMh%2Fimage.png?alt=media&#x26;token=26d5c104-e6f8-40aa-9f22-c6978c96d71b" alt=""><figcaption></figcaption></figure>
