# Wait for Control

This action can be used to pause the execution, waiting for the specified control object to appear on the screen.

## **Properties**

![](/files/-MfY9E3t3RHXxlXp23Py)

### **Input**

* **Identifier**: indicate a new UI element, or select from the already defined list of selectors.
* **Timeout**: total number of milliseconds the robot will search for the specified control object to appear before aborting the action.
* **Retry Interval:** the number of milliseconds robot will retry finding the specified control object.

{% hint style="info" %}
Based on the default values for timeout and retry interval, the robot would try 10 times within 5 seconds / 5000 milliseconds to find the specified control object.
{% endhint %}

### **Misc**

* **Display Name**: action display name in your implementation project
* **Wait Before**: number milliseconds robot to wait before executing the action.
* **Wait After:** number milliseconds robot to wait until moving to the next action.
* &#x20;**Abort on Error**: True/False
* **Retry Times**: Specifies the number of times to retry an action if it doesn't end successfully. Default value 0 (no retry); Use -1 if you want to retry indefinitely.&#x20;

## **Use Case**

### **Potential Use Cases**

* Wait for the google search bar to appear before trying to type in it.
* Wait on a company's webpage for tab/button "contact" to appear before typing in a message.
* Wait in an accounting software app for the button new invoice to appear before executing a click on it.

### **Examples of Using Wait for Control**

**Example**

**Description:**&#x20;

In this example, the robot will access the web page of Zendesk [,](http://www.rpachallenge.com/) look for the "Get Started" button and if it founds it, would display a confirmation message using the Message Box activity.

**Prerequisites**:&#x20;

Microsoft Edge installed.

Watch the robot in action:

{% embed url="<https://www.youtube.com/watch?v=EBUtaApvgzQ>" %}

You can see how the **Wait for Control** activity is used in an example that incorporates multiple activities.&#x20;

{% file src="/files/-MT19FjSZrfEcONum-Ta" %}
Wait for Control sample project
{% endfile %}

The article doesn't fully answer your question, or you want to find out more? Ask your question in the comments, on our community forum, or contact our support team or your account manager. Whatever works for you, your question will find its answer soon!


---

# 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.tailent.com/actions/tap-actions/application/wait-for-control.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.
