# set Browser Zoom Level

This is a pre-built Action located under the **@Browser Element**. The functionality of this Action in Avo Assure is to set the browser zoom level based on the value provided. The execution status is then stored in the dynamic variable.

## Syntax

**Input Value**: `<Zoom Level>`&#x20;

{% hint style="info" %}
**Note**: Use this action before the test step that requires a specific browser zoom level.
{% endhint %}

| Argument                           | Description                                            |
| ---------------------------------- | ------------------------------------------------------ |
| <p>\<Zoom Level><br>(Required)</p> | Provide the zoom level you want to set in the browser. |

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

| Argument                                                     | Description                                                       |
| ------------------------------------------------------------ | ----------------------------------------------------------------- |
| <p>\<Dynamic Variable>;\<Dynamic Variable><br>(Optional)</p> | Both dynamic variables store the status as **True** or **False**. |

### Example: Setting the Browser Zoom Level

In this example, we explain how to set the zoom level of the browser window.

* **Action:** set Browser Zoom Level
* **Input Value:** 125
  * The value **(125)** indicates the zoom level applied to the browser.
* **Output Value:** {ZoomStatus}
  * The execution status (e.g., True) is stored in this **{ZoomStatus}** dynamic variable with the following possible values:
    * **True:** If the zoom level is applied successfully.
    * **False:** If the zoom level cannot be applied due to an invalid value or browser limitation.
* **Logical Explanation**: The **set Browser Zoom Level** action fetches the value from the **Input Value** column **(125)** and applies this zoom level to the active browser window. After execution, the action stores the result (True) in the **{ZoomStatus}** dynamic variable.

<figure><img src="/files/rekYgccudYmbjL3G1IMX" alt=""><figcaption></figcaption></figure>

#### Knowledge Bites

Below are some examples of different zoom level scenarios:

| Zoom Levels         | Input Value | Result |
| ------------------- | ----------- | ------ |
| Minimum Zoom Level  | **50**      | True   |
| High Zoom Level     | **150**     | True   |
| Maximum Zoom Level  | **200**     | True   |
| Negative Zoom Level | **-60**     | False  |


---

# 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/set-browser-zoom-level.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.
