# Wait

The wait action in Avo Assure is found under the **@Generic** Element and it pauses the test for a set number of seconds before moving to the next step and allows user to delay execution for a specified time to accommodate system or process needs.

### **Syntax**

**Input Value:** `<Time in Seconds>`&#x20;

{% hint style="warning" %}
_**In Avo Assure, the Wait action has been enhanced for web applications.**_

_Previously, users had to manually enter explicit wait times (e.g., 5) in the Input Value field after certain actions to handle delays in loading elements. With this enhancement, Avo Assure now automatically waits for web elements to become clickable, verifiable, or visible, eliminating the need for hard-coded waits in most cases._

**Note:** _As of now, this enhancement is applicable only for web applications._
{% endhint %}

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Time in Seconds><br>(Required)</td><td>Required time in seconds</td><td></td></tr></tbody></table>

**Output Value:**

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>;&#x3C;Dynamic Variable><br>(optional) </td><td>This variable stores the result in <strong>true</strong> and <strong>false</strong> </td><td></td></tr></tbody></table>

**Example 1**&#x20;

**Perform a wait operation to handle delays in element availability (For only Web Applications )**\
\
The **Wait** action is used to pause execution until the targeted element meets the required condition (e.g., becomes clickable, visible, or verifiable), without the need for hard‑coded wait times. This action automatically manages the wait internally for supported web applications. The result of the wait operation is stored in the **{Wait}** variable as **True** – (if the element meets the condition within the wait duration )or **False** – ( if the element does not meet the condition )

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FcTbxRxUsm1h6VpBrsPvi%2Fimage.png?alt=media&#x26;token=9268482d-cb39-41a0-8bdb-df4e427827c3" alt=""><figcaption></figcaption></figure>

**Example 2**

**Wait before performing the next action (e.g., 5 seconds)**

The **Wait** action takes the value from the Input Value column (e.g., **5**) and waits for 5 seconds before executing the next step. This wait allows time for elements to load, processes to complete, or the system to become ready. No output value is generated, but the execution status is stored in the **{Status}** variable as **Ture** - (if the wait completes successfully ) or **False -**  ( if the wait is interrupted)&#x20;

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FPVrqr7JrMd89lNlgbE8Z%2Fimage.png?alt=media&#x26;token=49575495-90dd-4f32-aabb-de859aed5a12" alt=""><figcaption></figcaption></figure>
