MainWin.
Returns the next window that the Close method will close.
This functionality is supported only if you are using the Open Agent.
wNext = mainwin.GetNextCloseWindow()
| Variable | Description |
|---|---|
| wNext | The top-most window in the application. WINDOW. |
This function returns the application window that the Close method will close, if called. If only the MainWin is open, GetNextCloseWindow returns NULL.
[-] testcase GetNextCloseWindowExample()
[ ] WINDOW w
[ ] w = TextEditor.GetNextCloseWindow()
[-] while(w != NULL)
[ ] Print("Active window is", w)
[ ] w.Close()
[ ] w = TextEditor.GetNextCloseWindow()