Web Table image object - 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: Web Table image object (/Thread-Web-Table-image-object) |
Web Table image object - raaj123 - 06-25-2012 hi, Please help me anyone. My web table contains more number of Cancel images i want to click my selected Cancel image. i tried this code Code: browser("").page("").webtable("").childitem(row,col,"image",0).click Code: browser("").page("").image("Cancel").click please see the attached screen shot in that when i am adding objects that image (Cancel) is identifying index value is different for those Cancel images. Regards, Praveen Raaj. RE: Web Table image object - Ankesh - 06-25-2012 Can you try the followings.. Code: Browser("").Page("").Webtable("").SelectCell 1,"Cancel Leave" '//replace 1 with the desired cell Regards, Ankesh RE: Web Table image object - ssvali - 06-25-2012 You need to mention Row & Column number. For EX: - Code: browser("").page("").webtable("").childitem(4,9,"image",0).click RE: Web Table image object - raaj123 - 06-25-2012 hi, please help me Code: Browser("").Page("").Webtable("").ClickCell 1,"Cancel Leave" my problem is in a single column for each row i have a image , i want to click on selected image like once 3rd row next time 4th row like this. regards, Praveen Raaj. hi, please help me Code: Browser("").Page("").Webtable("").ClickCell 1,"Cancel Leave" my problem is in a single column for each row i have a image , i want to click on selected image like once 3rd row next time 4th row like this. regards, Praveen Raaj. RE: Web Table image object - ssvali - 06-25-2012 Try this and let us know the result Note :- Change the col value as per ur requirement Code: col = 9 RE: Web Table image object - raaj123 - 06-27-2012 hi, thanks for your suggestion.Still my problem is not solved Please help me 1. Code: browser("").page("").webtable("").childitem(row,col,"image",0).click----- 2. Code: browser("").page("").image("Cancel").click------ and 3. Code: col = 9 above 3 methods are not working my application is Ms.Net 2010 based developed application above code is working for 2008 based application. Regards, Praveen Raaj. RE: Web Table image object - raaj123 - 06-28-2012 hi, Please Help me anyone. regards, Praveen raaj. RE: Web Table image object - supputuri - 06-28-2012 does the object "Cancel" highlighting? RE: Web Table image object - raaj123 - 06-28-2012 hi, thank you please help me. object "Cancel" is not highlighting throwing run error as "Object required" objlmg.higlight regards, Praveen raaj. |