Waits until a condition is true or times out.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- condition
- Type:
System Func TSource, TResult
A delegate taking a TSource as its parameter, and returning a TResult.
Type Parameters
- TResult
- The type of result to expect from the condition.
Return Value
If TResult is a boolean, the method returns when the condition is true, and otherwise. If TResult is an object, the method returns the object when the condition evaluates to a value other than .Exceptions
Exception | Condition |
---|---|
![]() | Thrown when TResult is not boolean or an object type. |
See Also