Method elm.WaitFor
Overload
Waits for a user-defined state/condition of this UI element. For example enabled, checked, changed name.
public T WaitFor<T>(Seconds timeout, Func<elm, T> condition)
Parameters
timeout (Seconds)
Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout. |
condition (Func<elm, T>)
Callback function (eg lambda). It is called repeatedly, until returns a value other than |
Returns
T
Returns the value returned by the callback function. On timeout returns |
Exceptions
TimeoutException
timeout time has expired (if > 0). |
AuWndException
Failed to get container window (elm.WndContainer), or it was closed while waiting. |
Type Parameters
T |