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>

Note: Use this action before the test step that requires a specific browser zoom level.

Argument
Description

<Zoom Level> (Required)

Provide the zoom level you want to set in the browser.

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

Argument
Description

<Dynamic Variable>;<Dynamic Variable> (Optional)

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.

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

Last updated

Was this helpful?