[Wtr-general] Is there a global variable to control the scripts execution speed
Charley Baker
charley.baker at gmail.com
Tue Mar 13 12:56:54 EDT 2007
wait_until(120) { ie.button(:value, 'click me').exists?}
This'll poll for 120 seconds as opposed to the default 60.
-Charley
On 3/13/07, ftorres10 at comcast.net <ftorres10 at comcast.net> wrote:
>
> Charley
> How do you change the time out ?
> Thanks.
>
> Charley Baker wrote:
> > There's not an execution control variable, but instead of sleep which
> > is unreliable, the best bet when using Watir 1.5 is to use the
> > wait_until method.
> >
> > For example,
> >
> > do something
> > ....
> > wait_until{ ie.button(:value, 'Click Me').exists?) # poll for some
> > control to show up with defaults of timeout:60 seconds, poll every .5
> > seconds
> >
> >
> > hth,
> >
> > Charley
> >
> >
> > On 3/11/07, *Jason He* <Jason.He at resilience.com
> > <mailto:Jason.He at resilience.com>> wrote:
> >
> > Dear all,
> > Does watir/ruby provide a global configuration variable which
> > could used to change the speed of execution, rather than add many
> > "sleep" in each scripts.
> > Regards,
> > Jason
> >
> >
> > _______________________________________________
> > Wtr-general mailing list
> > Wtr-general at rubyforge.org <mailto:Wtr-general at rubyforge.org>
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Wtr-general mailing list
> > Wtr-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-general
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070313/45cb56c5/attachment.html
More information about the Wtr-general
mailing list