IWait TSource  Until TResult  Method WebDriver
Waits until a condition is true or times out.

Namespace: OpenQA.Selenium.Support.UI
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

TResult Until<TResult>(
	Func<TSource, TResult> condition
)

Parameters

condition
Type: OnlineSystem 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

ExceptionCondition
OnlineSystem ArgumentExceptionThrown when TResult is not boolean or an object type.
See Also