Close all Sub Windows
This is a pre-built Action located under the @Browser Element. The functionality of this Action in Avo Assure is to close one or more sub-browser windows during debugging or execution. The result is stored in a dynamic variable for further use during test execution.
Syntax
Input Value: <all>(optional)/window number 1;window number 2…>(optional)
<all>
(optional)
Provide all sub browser windows to close except the currently active one.
<window number 1; window number 2…> (optional)
Provide the sub browser windows to close. Separate multiple window numbers using a semicolon (for example, 2;3;4)
Output Value: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
Both dynamic variable stores 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.
Output Value: {SubWin}
The result of closes sub-window operation is stored in the {SubWin} dynamic variable, which returns one of the following values:
True: If the specified sub windows is closed successfully.
False: If the specified sub windows is not closed successfully.
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 {SubWin} variable as true.

Last updated
Was this helpful?