Forum Discussion
Vallalarasu_P
7 years agoFrequent Contributor
function waitWhile(condition, msg, timeout)
dim t
t = 0
do While eval(condition) and t <= timeout
delaytext = t & ” of ” & timeout & ” seconds passed waiting for ” & msg
delay 1000, delaytext
t = t + 1
loop
if t <= timeout then
waitWhile = true
else
waitWhile = false
log.event “Timeout expired waiting for ” & msg
end if
end function
An example call to this would look like:
call waitWhile(“aliases.pageObj.find(“”name””, “”elementname””, 4, true).exists”, “element to appear”, 30)
Regards
Valla
Related Content
- 2 years ago
- 6 months ago
Recent Discussions
- 4 days ago
- 4 days ago
- 7 days ago