Good day.
I creating script for SAP, and take some kind of problem with it.
First, I need to exit vuser properly, when error happen, so I use "sapgui_window_close".
But before exit, SAP ask confirmation, and it's a new window, whith button "Yes".
To press a button, I need use "sapgui_select_active_window" with properly ID.
That's a problem, I don't know ID of that window.
It may be from 1 to 3, because of other error windows.
Now, I just selected window in cycle, check if "yes" button exist and press it, but it's a tree of if() statements which look awful.
So question is: how to know active window ID?
Thank you.