You can use sleep, but I'd highly recommend avoiding it where
possible. Why? It's hard coded and it's error prone.  wait_until polls
every half second which means you'll get there faster possibly and
then has a timeout in case you can also extend if you need to. sleep
is best avoided in scripts.

-Charley

On 9/18/06, Jason Alexander <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Actually, I used "sleep 5" and it worked fine. Thanks all.
>
>
>
>
>
>
>
> Thanks,
>
> -Jason
>
>
>  Jason L. Alexander  »  Chief Technology Officer »
>
> Telligent Systems, Inc.  » http://telligent.com » w: 214.420.1333  »
> http://JasonA.net
>
>  ________________________________
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Jason Alexander
>  Sent: Monday, September 18, 2006 1:07 PM
>  To: [email protected]
>  Subject: [Wtr-general] Delays and Pauses
>
>
>
>
> Hey guys,
>
>
>
>
>
> Quick question, what is the best way to pause your scripts? For example, I
> have an order page that takes a few seconds to go out and hit the merchant
> gateway and authorize the charge. Unfortunately, my tests around that seem
> to fail because it takes so long.
>
>
>
> What is the best way to pause the script a few seconds while waiting on the
> page to finish processing?
>
>
>
> Should I set $ie.sleeptime high before hitting the submit button, and then
> setting it back afterwards (what's the default value?)?
>
>
>
>
>
> Thanks,
>
> -Jason
>
>
>  Jason L. Alexander  »  Chief Technology Officer »
>
> Telligent Systems, Inc.  » http://telligent.com » w: 214.420.1333  »
> http://JasonA.net
>
>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to