> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Wait

> Pause test execution to allow for page loads, animations, or processing.

## Overview

The wait action pauses test execution for a specified duration, allowing the page to finish loading, animations to complete, or data to process before the next step runs.

## Dynamic AI Wait

The agent automatically determines the optimal wait duration based on page state and context. Use this when you do not need precise timing control.

Ideal for:

* Standard page load operations
* UI transitions and animations
* Dynamic content loading

<Frame caption="Example of Dynamic AI Wait">
  <img src="https://mintcdn.com/spur/M9lHLoA7TzDZQpbJ/images/Wait/wait_ai.png?fit=max&auto=format&n=M9lHLoA7TzDZQpbJ&q=85&s=c130f5935052cb8237e262de5b384142" alt="" width="1044" height="120" data-path="images/Wait/wait_ai.png" />
</Frame>

## Explicit Wait

Specify an exact duration for the agent to wait, giving you precise timing control.

Ideal for:

* Complex loading operations
* Third-party integrations
* Heavy data processing tasks

<Frame caption="Example of Explicit Wait">
  <img src="https://mintcdn.com/spur/M9lHLoA7TzDZQpbJ/images/Wait/wait_explicit.png?fit=max&auto=format&n=M9lHLoA7TzDZQpbJ&q=85&s=3b5a5638a0065f6772d434c8b5bb7280" alt="" width="1044" height="120" data-path="images/Wait/wait_explicit.png" />
</Frame>

<Warning>
  Avoid excessive wait times as they increase test execution duration. Consider using verification actions when possible instead of fixed wait times.
</Warning>
