I Have web table in AUT, which contains a list of reports links. I want to click on link by using link name with out adding it to OR.
I am always recieving error message there are more than on link object exist with same neme...plese do the needful
main_nam =Rtrim(ltrim(browser("Browser").Page("Page").Frame ("Report_Types").WebTable("Analytical Reports").GetCellData(i,j)))
msgbox "MAIN_NAM" & main_nam
msgbox CHR(34)& "name:=" & main_nam &chr(34)
browser("Browser").Page("Page").Frame("Report_Type s").WebTable("Analytical Reports").Link(chr(34) <font color="red"> </font> & "text:=" & main_nam &chr(34)).click
1) retriving first row from datatable... COL#1 contains Name of report and COL#2 contains RUN status.
2) I am using the name retrieved from DATATBLE COL#1 to verify the link in Webtable.
3) If exists and I am verifying the Run status. If it is 'Y' then I am clicking on the link usine name retrieved from DATATBLE COL#1.
If add the link to OR , I am succesfully performing the clik operation. If I use DP (i.e 'browser("Browser").Page("Page").Frame("Report_Typ es").WebTable("Analytical Reports").Link(chr(34)& "text:=" & main_nam &chr(34),"visible:= -1").click) error message is showing.
I tried with this option eralier... I got the same error...
in above example the link description we are passing is name:= Analytical reports instead of "name:= Analytical reports"(" is missed in description) . That is why i appeneded CHR(34) at the begining and end of the object description.
"The "Link" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object." error message is showing every time. I used boject spy and added properties mentioned by u. no use.