# Bring Browser to Foreground

This is a pre-built Action located under the **@Browser Element**. The functionality of this Action in Avo Assure is to bring the browser window (where the AUT is running) to the foreground during debugging or execution. The result is stored in a dynamic variable for further use during test execution.

## Syntax

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

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

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

| Argument                                                    | Description                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### **Example: Bringing the Browser Window to the Foreground**

In this example, we explain how to bring the active browser window to the front during test execution using the **Bring Browser to Foreground** action.

* **Action**: Bring Browser to Foreground
* **Input Value**: N/A
  * This action does not require any input value. It simply brings the currently active browser window to the front of the screen during execution.
* **Output Value**: {Status}
  * The result of browser foreground operation is stored in the **{Status}** dynamic variable, which returns one of the following values:
    * **True**: If the browser brought to the foreground successfully.
    * **False**: If the browser could not be brought to the foreground.
* **Logical Explanation**: The **Bring Browser to Foreground** action executes without any input value and focuses the active browser window, ensuring it appears in the foreground during automation execution. The result of this operation is stored in the **{Status}** variable as True.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FdJ1a5ZdSWIry0ghdIT2p%2Fimage.png?alt=media&#x26;token=dbb050a6-a066-4db3-8464-7f20ede9946b" alt=""><figcaption></figcaption></figure>
