# 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="/files/PUdHWkb2q5gfOo09rBcT" alt=""><figcaption></figcaption></figure>


---

# 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.avoautomation.com/avo-assure/actions/web/browser/bring-browser-to-foreground-1.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.
