# Dismiss Popup

This is a pre-built Action located under the **@BrowserPopUp Element**. The functionality of this Action in Avo Assure is to dismiss a browser popup message. The result is stored in a dynamic variable for further use during test execution.

## Syntax&#x20;

**Input Value**: `N/A`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>N/A</td><td>Not Applicable</td><td></td></tr></tbody></table>

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>(Optional);&#x3C;Dynamic Variable>(Optional)</td><td>Both dynamic variable stores the status as <strong>True</strong> or <strong>False</strong>.</td><td></td></tr></tbody></table>

### **Example: Dismissing an Active Popup or Alert**

In this example, we explain how to close or dismiss an active popup or alert on a web page using the **Dismiss Popup** action.

* **Action:** Dismiss Popup
* **Input Value**: N/A
  * This action does not require any input value. It closes or dismisses the currently displayed alert or confirmation popup on the web page.
* **Output Value:** {Popup}
  * The result of the popup handling is stored in this **{Popup}** dynamic variable with the following possible values:
    * **True**: If the popup is dismissed successfully.
    * **False**: If the popup is not dismissed successfully.
* **Logical Explanation**: The **Dismiss Popup** action detects any active browser alert or confirmation message and dismisses it. The result of this operation is stored in the **{Popup}** variable as true.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FHEmEeYGIcEQ0pidjp4Dv%2Fimage.png?alt=media&#x26;token=18e829c6-45c0-4ffe-94ad-61aa0c552572" alt=""><figcaption></figcaption></figure>
