Close all Sub Windows
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
Input: <all>(optional)/<window number 1; window number 2…> (optional)
Note: If nothing is given as argument in above syntax ‘all’ will be considered by default.
Output: <Dynamic Variable>(Optional) ;<Dynamic Variable>(Optional)
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.
all
Note: After performing actions in the main window and the pop-ups, you need to close all opened sub-windows.
After the test completes, all sub-windows (except the main browser window) should be closed.
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.