|
Re: Alternate for sleep() [message #633990 is a reply to message #633961] |
Wed, 20 October 2010 08:19 |
Mariot Chauvin Messages: 174 Registered: July 2009 |
Senior Member |
|
|
Hi Nyna,
Comments below.
Nyna a écrit :
> Hi
> Can anyone suggest me an alternate for the sleep() method.. heard
> about waitUntil(). Can anyone please explain.
>
> Thanks in advance :)
When you plan to use "sleep", this is for waiting something, for
instance a button enablement, a dialog display or a background job to
end. If you use the sleep method you will specify an amount of time. The
duration will depend on your computer performance and workload. In other
words, the test may work on your computer at this time but will fail in
othercase.
The "waituntil" method allows you to use a condition rather than a
duration. Until the condition is checked, the test will wait.
In other words, the test will work on any computer at any time.
Hope this help,
Regards,
Mariot
--
Mariot Chauvin @ Obeo
http://www.obeo.fr
http://mariot-thoughts.blogspot.com
http://fr.linkedin.com/in/mariotchauvin
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04150 seconds