Switch to different Window
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
Input Value: <window number>
<window number> (Required)
Enter the window number to switch to that browser tab.
Output Value:
<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.