Close all Sub Windows

This is a pre-built Action located under the @Browser Element, instructs Avo Assure to close one or more sub-browser windows (pop-ups or child tabs) during debugging or execution. The behavior depends on the value provided in the Input Value field, and the status is stored in a dynamic variable.

Syntax

Input Value: <all>(optional)/window number 1;window number 2…>(optional)

Argument
Description

<all>

(optional)

Closes all sub-browser windows except the currently active window.

<window number 1; window number 2…> (optional)

Closes the specified sub-browser windows. Multiple windows can be separated using a semicolon (e.g., 2;3;4).

Output Value:

Argument
Description

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

The dynamic variable holds the status as True or False.

Example

Closes specific sub-windows, and stores the result in the dynamic variable.

The Close All Sub Windows action accepts an optional value in the Input Value column (e.g., windows 2 and 3), to determine which sub-windows to close. The action closes either the specified window numbers or all child windows, depending on the input. The output status is stored in the {CloseSubWinStatus} variable with the following meanings:

  • True - The specified sub-windows were closed successfully.

  • False - One or more sub-windows failed to close, or an error occurred.

Last updated

Was this helpful?