index identifier - 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: index identifier (/Thread-index-identifier) |
index identifier - falvi - 05-16-2012 Hello, web application i'm working on is pretty dynamic, images and controls reload differently as per action. there is one image that is always visible and at times can have multiple copies inside the page. i tried to identify it using "index = 1" as "index = 0" is always present, so i need to check "1" but if the second image does not exist, QTP returns me with the same image object which is always present, even though i've declared the index as 1... what exactly is going on here? extremely confused about it, i've worked my way around it temporarily but need some suggestions to understand this issue better... RE: index identifier - falvi - 05-21-2012 was the question too complicated that no one understood or no one knew the answer to this one RE: index identifier - sshukla12 - 05-22-2012 Hi, There is nothing strange in this. this is what QTP does. If u have 2 images and based on different index it will identify both the images respectively but when single image only exists then there is no use of index property, so based on the mandatory properties it will give you the single image only. Let me know if some more help is required. Regards, Sankalp RE: index identifier - falvi - 05-23-2012 Thanks a lot that is what i understood about it too, just wanted to make sure if what i understood was correct or not... Regards. RE: index identifier - sshukla12 - 05-23-2012 Glad to hear it clears ur doubt. Regards, Sankalp |