rikkilar
14 years agoOccasional Contributor
handle log.error message in loop statement and continue execution
Below is sample vbscript code,where I found 3 objects with properties I passed to findallchildren.
only with one object ,i can do successfull action.so in for loop i need to handle the log.error exception and continue with execution until i get the desired object
dim select1
only with one object ,i can do successfull action.so in for loop i need to handle the log.error exception and continue with execution until i get the desired object
dim select1
props=Array("idStr")
values=Array("searchQueryView:content:restrictions:0:operatorItem")
redim select1(20)
select1 = Sys.Process("firefox").Page("*").FindallChildren(props, values, 10)
log.message(ubound(select1))
for i=0 to ubound(select1)
button(i).click
next