Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
07-24-2013, 06:43 AM
Probably you may want to do a .Exist first and see if it returns true. If yes, then it is not visible to the naked eye and merely hidden at the background which QTP can find as it blindly looks for that object properties. Hence it may be returning the value.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
07-24-2013, 07:22 AM
Yes. Thats what i had thought. So, the object does exist but is masked by the developer. Hence, you cannot see it on the screen but it does exist at the background.
What is your objective of test? Probably based on that I will be able to suggest.
BTW, If you have tried the visible, would you check it as below.
Code:
MsgBox Browser("Username Dropdown").Page("Impersonate User").WebElement("UserName").GetROProperty("visible")
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 33
Threads: 2
Joined: Jul 2013
Reputation:
0
07-24-2013, 09:29 AM
Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.
Posts: 323
Threads: 8
Joined: Nov 2011
Reputation:
4
07-24-2013, 10:39 AM
(This post was last modified: 09-03-2014, 11:13 AM by vinod123.)
because close tab window is nothing but a dialog box. For every dialog box has properties for it. GetROProperty is used for getting the property details of the object.As you included GetROProperty statement after closing the dialog box that is the reason it displaying property value after closing the window