| || |
capturing the text of a pop up window
I want to capture the text of a pop up window.Can anyone tell me which property to use?
For example:When the password is invalid, a pop up window is displayed with text as "Invalid password" along with "OK" button.The classname of the pop up is "Static"
I need to capture the text "Invalid password"
When i am trying to use GetVisibleText, it is even giving me the "OK" button text.Here i want to capture only the "Invalid password" text.
Re: capturing the text of a pop up window
On what object did you use getvisibletext? popup as a whole or on button?
Try this in order to get the Pop Up title (I think this is what you are trying to get):
msgbox Dialog("Your Pop Up Window").GetROProperty("text")
Or - this - in order to get the actual message inside the pop-up window:
msgbox Dialog("AeroScout System Manager").Static("Your Static Obj).GetROProperty("text")