Watir ... difference between sleep and wait
Asked Answered
L

1

6

Is there any notable difference between

sleep 10

and

wait_until(10)

They both seem to do the same thing: wait 10 seconds then proceed to the next step

Lucier answered 7/6, 2013 at 13:59 Comment(0)
S
18

sleep just does nothing for the specified time. wait_until takes a block. It waits until the block evaluates to true or times out. If no block is given they act the same.

Scold answered 7/6, 2013 at 14:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.