> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/web/browser/set-browser-zoom-level.md).

# 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>`

{% 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)`

| 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/browser/set-browser-zoom-level.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
