09-13-2012, 11:44 AM
(This post was last modified: 09-13-2012, 11:59 AM by ksrikanth2k9.)
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 if
it might help .....''