Switch to different Window

This is a pre-built Action located under the @Browser Element, instructs the Avo Assure to switch between two different windows or tabs during debugging or execution. It helps handle multi-window or multi-tab scenarios in web applications and save the result in the dynamic variable.

Syntax

Input Value: <window number>

Argument
Description

<window number> (Required)

Enter the window number to switch to that browser tab.

Output Value:

Argument
Description

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

The dynamic variable holds the status as True or False.

Example

Switches the focus to a different browser window based on the specified window number.

The Switch to Different Window action takes a value from the Input Value column (e.g., 2) and changes the active browser context to the specified window (e.g., from the Home browser tab to the Admin tab). The result of this operation is stored in the {SwitchWindow} variable, which can have the following values:

  • True – If the window switch was successful.

  • False – If the switch failed, or an error occurred.

Last updated

Was this helpful?