|Re: Alternate for sleep() [message #633990 is a reply to message #633961]
||Wed, 20 October 2010 08:19
| Mariot Chauvin
Registered: July 2009
Nyna a écrit :
> 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
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,
Mariot Chauvin @ Obeo
Powered by FUDForum
. Page generated in 0.01798 seconds