Code:
counter=0
for i=1 to 10
A = Browser("abc").Page("pqr").Link("Pubs").GetROProperty("text")
if A="some value" then
set obj= description.create
obj("micclass").value="Link"
obj("attached text").value=i
function(call)
counter=1
else
Browser("abc").Page("pqr").Link(obj).Click
end if
loop
if counter=0 then
Reporter.ReportEvent micFail,"invalid","category not found"
end ifit might help .....''

