---------this is working but my problem is it is clicking first Cancel button only, i would like to click 4th row Cancel image.
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.
Browser("").Page("").Webtable("").SelectCell 1,"Cancel Leave" '//replace 1 with the desired cell
Browser("").Page("").Webtable("").ClickCell 1,"Cancel Leave" '//This will click on the image.
Try this and let us know the result
Note :- Change the col value as per ur requirement
Code:
col = 9
rCnt = browser("").page("").webtable("").GetROProperty("rows")
For i = 1 to rCnt
Set objImg = browser("").page("").webtable("").ChildItem(i,col,"Image",0)
objImg.Highlight
objImg.Click
Next
col = 9
rCnt = browser("").page("").webtable("").GetROProperty("rows")
For i = 1 to rCnt
Set objImg = browser("").page("").webtable("").ChildItem(i,col,"Image",0)
objImg.Highlight
objImg.Click
Next--------------
above 3 methods are not working my application is Ms.Net 2010 based developed application above code is working for 2008 based application.