| || |
get caption of any popup window
User Misha (email@example.com) posted:
If you are running a WR test and don't know when the popups will occur, you
need some way to distinguish them from the normal application windows that
you are testing with. Usually they have one of a few combinations of class,
MSW_class, label, that you can use in one or more exceptions, together with
the property "active: 1".
If you want to grab the details of a current popup which you are expecting,
you can use a physical description, eg:
Your question needs to be a bit more specific to give a useful answer
From: "brijbpatel" <brijesh_patel@p...>
Date: Wed Jul 10, 2002 10:27 am
I am using win runner 7.01
I want to get caption/lable of any pop up window but that window is
not registered in GUI map file.
Some idea is to use GetActiveWindow() etc. but I dont know how to use
it. Can anybody help me please...
Thanks in advance,
Re: get caption of any popup window
Most generic popups have an MSW_class of #32770. I would suggest adding a window to your gui map called GenericPopup with the following physical description:
You can then use define_popup_exception with this window.