User bhavin_vapi ( posted:

How do i obtain information about the currently active window while
testing ?

I am actually testing my web pages and as part of the test i click a
button, which should pop up a error dialog box. I check for the box
using the win_check_gui() function and if it returns OK, i go ahead,
else report an error in the report sheet. If the gui check fails, it
could be 2 things - 1) some other window(not matching the properties
recorded by the test) comes up. 2) no window pops up.
In case 2, i can just report the error and go ahead with the test,
while in case 1, i would have to click "OK" on the pop up to get rid
of it and then move on with the test.

How do i do this ?