Close all Sub Windows
This action in Avo Assure is available under the @Browser Element. Its functionality is to close one or more sub-browser windows (pop-ups or child tabs) during debugging or execution. The behavior depends on the value specified in the input value field, and the result is stored in a dynamic variable.
Note: The parent browser window will remain open unless specifically closed using other actions.
Syntax
Input Value: <all>(optional)/window number 1;window number 2…>(optional)
<all>
(optional)
Closes all sub-browser windows except the currently active one.
<window number 1; window number 2…> (optional)
Closes the specified sub-browser windows. Multiple window numbers can be separated using a semicolon (e.g., 2;3;4).
Output Value:
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
The dynamic variable holds the status as True or False.
Example: Closing Specific Sub-Windows
In this example, we explain how to close specific sub-windows or all child windows using the Close All Sub Windows action.
Action: Close All Sub Windows
Input Value: 2;3
The input value, 2;3, specifies the sub-window numbers that need to be closed. If no input value is provided, all child windows opened during execution will be closed automatically.
Output Value: {CloseSubWin}
The variable, {CloseSubWin}, stores the result of this action, with the following possible values:
True: Indicates that the specified sub-windows are closed successfully.
False: Indicates that one or more sub-windows failed to close.
Logical Explanation: The Close All Sub Windows action takes the value from the Input Value column 2;3 and closes the specified sub-windows. If no input is given, it closes all open child windows by default. The execution result is stored in the {CloseSubWin} variable as true.

Last updated
Was this helpful?