08-09-2012, 03:34 PM
Hi All,
i have page which contains pagination.
and i want to search a particular category in the pages.
the logic goes link this
can i use 'for' or 'for each' instead of 'if'
i have page which contains pagination.
and i want to search a particular category in the pages.
the logic goes link this
can i use 'for' or 'for each' instead of 'if'
Code:
A = Browser("abc").Page("pqr").Link("Pubs").GetROProperty("text")'If A.Exist Then
function(call)
else
Browser("abc").Page("pqr").Link("2").Click
If A.Exist Then
function(call)
else
Browser("abc").Page("pqr").Link("3").Click
If A.Exist Then
function(call)
else
Browser("abc").Page("pqr").Link("4").Click
If A.Exist Then
function(call)
else
Browser("abc").Page("pqr").Link("5").Click
If A.Exist Then
function(call)
else
Reporter.ReportEvent micFail,"invalid","category not found"
End if
End If
End If
End If
End If