Micro Focus QTP (UFT) Forums
How to verify different + icon imgaes with same name as "icon_expand" - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to verify different + icon imgaes with same name as "icon_expand" (/Thread-How-to-verify-different-icon-imgaes-with-same-name-as-icon-expand)



How to verify different + icon imgaes with same name as "icon_expand" - sqadri - 02-07-2012

Hi,

I have 3 menu items on a page and I can expand and collapse these menus by clicking the + or minus icon. But when I run the script it does not know the difference between the 3 + icons when I try to expand them becaus all the + icon images have the same name "icon_expand"

Thanks,
Sqadri


RE: How to verify different + icon imgaes with same name as "icon_expand" - Ankesh - 02-07-2012

Try using the index property.


RE: How to verify different + icon imgaes with same name as "icon_expand" - rajpes - 02-07-2012

Code:
webelement("index:=0",some other properties).click



RE: How to verify different + icon imgaes with same name as "icon_expand" - sqadri - 02-08-2012

Hi Rajpes,

Thanks, I tried it and it worked one time and after that it did not work. In the meantime I used x and y coordinates--I dont like this approach but for now. Do you have any other solution please?

Thank you,
Sqadri


RE: How to verify different + icon imgaes with same name as "icon_expand" - rajpes - 02-08-2012

attach screenshot with object spy details, let's see


RE: How to verify different + icon imgaes with same name as "icon_expand" - roselin6 - 07-05-2012

Hi,

I have a webtable like below

Req No. Status Date Copy
12345 Initial 5-Jul-12 Print_Icon
45677 InProgress 5-Jul-12 Print_Icon
6545 Initial 5-Jul-12 Print_Icon

I have to capture the Req No. according to the order submitted.
here the only unique value is comments and which can be seen inside the print_icon.png. I should open the image and check for the unique comment and then capture the corresponding req.no.
Please help me.