Wait.Until
Description
- Wait until specified length of time, or until an expression evaluates to true.
Syntax
- Wait.Until(n, expr)
- Waits until expression expr becomes true, up to a maximum of n milliseconds.
- Wait.Until(n)
- Wait until n milliseconds.
- Wait.Until(expr)
- Waits until expression expr becomes true.
Parameters
- n
- (integer) length of time in milliseconds
- expr
- (string) expression to evaluate
Examples
- Wait.For(300)
- Wait.For(activewindow("=notepad"))
- Wait.For(300, anywindow("=notepad"))
Notes
- Wait.Until() cannot be used inside a do( ) command.
- Multiple independent waits can run concurrently.