> For the complete documentation index, see [llms.txt](https://docs.roboteasy.tech/studio-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboteasy.tech/studio-en/studio/objetos/acoes-globais/timeout.md).

# Timeout

Object used to repeat and/or validate an action according to a condition.

{% hint style="info" %}
The robot will exit the timeout as soon as the condition is met
{% endhint %}

## Settings&#x20;

To use this object, simply select the condition and duration of the timeout.

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FsiwSfFM70wGK3RMYKj2o%2Fimage.png?alt=media&amp;token=8255bb24-f1a2-468a-8d99-d467d11d3078" alt=""><figcaption><p>General object layout</p></figcaption></figure>

**Filling in the object:**

| Field     | Description                                                                                                                                                                  |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title     | It's the object's name and doesn't need to be changed, unless you want to identify it to make it easier to find on the robot, for example: "Timeout - Execution Validation". |
| Condition | Condition to validate a routine. Example: variable1 ==variable2 / variable1.Contains(“test”)                                                                                 |
| Seconds   | Seconds for the condition to be met                                                                                                                                          |

## **USE CASES**

* Validate object action according to its condition.&#x20;
* Repeat validation according to its condition.&#x20;
* Being able to repeat and validate whether a file exists on your computer or not.

## Example

Repeat validation of a true condition for three seconds to check if the file exists in the selected directory.

<details>

<summary>ITENS USED IN THE ROBOT</summary>

Objects: [Check if file exists](/studio-en/studio/objetos/arquivos/verificar-se-arquivo-existe.md) - [Message Box](/studio-en/studio/objetos/acoes-globais/caixa-de-mensagem.md)

</details>

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FXU7BxF7p2wXWjz9pku83%2Fimage.png?alt=media&amp;token=0d55a3f4-370f-444b-ab6d-be1e3a6db420" alt=""><figcaption><p>Example Robot Configuration - Timeout</p></figcaption></figure>

**STEP 1:** To set Timeout with true condition and give it three seconds of time.&#x20;

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FdwE7mYVLy9y0rZn1UEWB%2Fimage.png?alt=media&amp;token=85a7363d-d847-44a0-8015-5385dc3dfe53" alt=""><figcaption><p>Timeout setting</p></figcaption></figure>

**STEP 2:** To set Check If File Exists and 2 (two) message boxes to see the appropriate validation actions and sequence of robot's executions.&#x20;

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FT7IVr8DdrGvCSrjyFFTe%2Fimage.png?alt=media&amp;token=3fb1b93b-38fd-437f-8545-24290b6c8c74" alt=""><figcaption><p>Validation Objects setting</p></figcaption></figure>

**STEP 3:** Run the robot and check the following actions:&#x20;

**a)** Timeout will repeat and validate the operation within it as True for 3 seconds.&#x20;

**b)** It returns to the robot's execution

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FpUaCXi5Ds2o1yCVYCuHO%2Ftimeout.gif?alt=media&amp;token=41fb968c-f48c-4eb0-9b12-8f1fb1bdb329" alt=""><figcaption><p>Successful Execution Robot Example - Timeout</p></figcaption></figure>

## Download it:

{% file src="/files/GegBmpOQ8XtGzf9XBLTH" %}
