05-16-2012, 12:42 PM
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...
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...