Close all Sub Windows
This is pre-built Action located under the @Browser Element Name. It instructs the Avo Assure Client to close all sub windows which are opened during debugging or Execution. The Close All Sub Windows Action is used to close all windows that were opened during the test. This is useful for cleaning up pop-ups, modals, or any additional windows that were opened as part of the test.
Syntax
Input: <all>(optional)/<window number 1; window number 2…> (optional)
Output: <Dynamic Variable>(Optional) ;<Dynamic Variable>(Optional)

Usecase/Example

Scenario: Closing All Sub-Windows or Pop-ups in a Web Application Test
When testing a web application, especially one that involves opening multiple windows or pop-ups (such as when clicking on links or buttons that open new windows), it’s important to clean up by closing any sub-windows or pop-ups that were opened during the test. The Close All Sub Windows Action is used to close all windows, ensuring that no additional browser windows or tabs remain open after the test.
Input
all
Expected Result
After the test completes, all sub-windows (except the main browser window) should be closed.
Output
The Close all Sub Windows Action is closing all the sub windows and save the status as True in the {result} Output Variable, which can be utilized for display or other purposes.
Last updated
Was this helpful?