Since you're using Watir 1.5, I'd recommend something along the lines of this:
[EMAIL PROTECTED](:name, 'Submit').exist?} And then click your button. The default timeout on that is 60 seconds with a half second default on polling. -Charley On 9/18/06, Jason Alexander <[EMAIL PROTECTED]> wrote: > > > > > 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
