# Wait Element To Disappear

Waits for an element to disappear from the screen (e.g. a loading window closing). The element is specified with the selector in the designer or with the `Element` input. It is a single item in the toolbox: the selector window detects the technology of the selected element (Windows, browser, SAP), and when the selector is saved, the activity turns into that technology's version. If the selector matches more than one element and the selector has no `Match Index`, the activity throws an error.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `Timeout` | `TimeSpan` | ❌ No     | Maximum time to wait for the element to disappear. If empty or 0, 30 seconds. |
| `Element` | by technology | ❌ No     | The element to wait for (e.g. the element found by the **Element Exists** activity). If set, the selector in the designer is not used; the element counts as disappeared when it can no longer be accessed. Either the element or the selector is required. |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `Disappeared` | `Boolean` | `True` if the element disappeared, `False` if it is still there at the end of the time. |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | `False` | If `True` and the element is still there at the end of the time, the activity throws an "Element still exists" error. |


---

### By technology

| **Technology** | **Element type** | **Default timeout** | **If the element searched with the selector is absent at the start** |
|------------|--------------|-----------------|------------------------------------------------------------------|
| Windows    | `UIElement`  | 30 seconds      | Waits until the end of the time for the element to appear; `True` if it does not appear |
| Browser    | `NMElement`  | 30 seconds      | `True` immediately                                               |
| SAP        | `SAPElement` | 30 seconds      | Waits until the end of the time for the element to appear; `True` if it does not appear |


---

### Usage

* **Open Selector** opens the selector window. After an element is selected, the button's name changes by technology (e.g. **Edit Windows Selector**).
* **Highlight** shows the element found by the selector on the screen.