Discrete Actions
Wait
Learn how to use wait actions in Spur
A wait function pauses the execution of a script or action for a specified duration, allowing for synchronization or delays in processing within an application.
Dynamic AI Wait
The AI agent automatically determines optimal wait duration based on page state and context.
Ideal for:
- Standard page load operations
- Simple UI transitions and animations
- Dynamic content loading
example of dynamic AI wait
Explicit Wait
Specify an exact duration for the agent to wait, ensuring precise timing control.
Ideal for:
- Complex loading operations
- Third-party integrations
- Heavy data processing tasks
example of explicit wait
Avoid using excessive wait times as they can significantly increase your test execution duration. Consider using verification actions when possible instead of fixed wait times.