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
- 5 months ago
- 2 years ago
Recent Discussions
- 50 minutes ago
- 2 days ago