# Clear Text IRIS

This is a pre-built action which comes for the element captured from the Desktop AUT using IRIS method. It instructs the Avo Assure Client to wipe the value from the IRIS textbox and save the status in the output variable as Fail/Pass.&#x20;

### Syntax &#x20;

**Input:** The following values can be given as input in the input value field for this action &#x20;

`<N/A> or 0` &#x20;

`1`&#x20;

`2`&#x20;

`3`&#x20;

`4; <+/- number of chars>`&#x20;

{% hint style="info" %}
Note: The implementation of this Action (based on each input) is performed as follows:

\<empty> or 0 - Clear text by clicking on the element, then perform the **Ctrl+A** action followed by a backspace action.&#x20;

1. Clear text by performing a double-click operation on the element and then performing a backspace action.&#x20;
2. Clear text by clicking on the element, then move the cursor at the start of the element text (by Home key action), followed by **Shift+End** and backspace actions.&#x20;
3. Clear text by clicking on the element, then move the cursor at the end of the element text (by End key action), followed by **Shift+Home** and backspace actions.&#x20;
4. Clear selective text based on the second input (which is used to specify the starting/ending number of chars to be cleared).&#x20;
   {% endhint %}

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

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

### **Usecase/Example**

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

### **Scenario:** The Clear Text IRIS action clears invalid text from the Username field in the registration form&#x20;

The scenario involves testing a registration form on a website, which has Username Input Field. After entering invalid or incorrect text in the input fields, the goal is to clear the text from the field for re-entry or to reset the form. The Clear Text IRIS Action is executed on the Username field and clears the entered text from these fields.&#x20;

### Expected Result&#x20;

The Action needs to clear the username textbox.&#x20;

### Output&#x20;

The Clear Text IRIS Action clear the Text which is available on the username textbox and store the status in the {Result} Output Variable as True


---

# 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/textbox/clear-text-iris.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.
