Micro Focus QTP (UFT) Forums
Unable to find a unique property - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Unable to find a unique property (/Thread-Unable-to-find-a-unique-property)



Unable to find a unique property - Saranya - 04-03-2008

hi ankur..

I have a doubt in descriptive programming. I am not able to find a unique property for an object. That is when i click on an image a pop-up-layer appears. Now i have to validate that layer. Spy shows that the layer is a webelement. Its inside a frame.But that layer exists even before i click on that image. So if i run my script without clicking on that image my test will pass. So the script will pass even if the layer doesnt pop up. So i need to find a unique property for that layer which changes before and after clicking on that image. i tried with color property. That is also same before clicking and after clicking that image. Visibility property is set true for that layer. Please help me out.


RE: Unable to find a unique property - Ankur - 04-30-2008

if i get it right..
you can include "name" /name like property to the pop up.


RE: Unable to find a unique property - Anshoo Arora - 05-11-2008

Saranya, could you post the ObjectSpy snapshot with all of the layer's properties?