There is a report that uses pagination . Now earlier what was required was that finding out the dynamic links and then performing actions after clicking on them.
I am able to loop through the pages and find those links.
But Now we have a checkbox attached to every link.
Now the requirement is that now I have to find the link first and by checking the checkbox perform further operations.
I am now unable to make QTP recognize that checkbox associated with the link.
I easily get the link.
But how to check the checkbox associated ?
Tharun is right...probably if you could explain ure solution it would be better...i had a similar problem...but luckily i realized in my case that the links and checkboxes were in a webtable. So first of all check whether these links are in a webtable or not....
After looping thorugh the pages I when I reach the Link I get the "html id" of tha link . The hTml id is say "dgdReport_ctl09_channelUrl ".
so everytime when I find that link I get the "html id".
link_htmlid = B.P.link.getroproperty("html id")
Now using object spy I checked the html id of the checkbox c which was like "dgdReport_ctl09_chkadid" . See this text "ct109" this thing is always common in the link and the its associated link. Now if I go to the next link it would be link "ct110" and the text "dgdReport" is always common for html ids of both checkbox and link. so now I know that html id of that checkbox will contain "dgdReport_ct109" this text.
and for the rest it was very easy