Repeatedly applies this instance's input value to the given function until one of the following occurs:

  • the function returns neither null nor false
  • the function throws an unignored exception
  • the timeout expires

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

Syntax

C#
public TResult Until<TResult>(
	Func<T, TResult> condition
)
Visual Basic
Public Function Until(Of TResult) ( _
	condition As Func(Of T, TResult) _
) As TResult
Visual C++
public:
generic<typename TResult>
virtual TResult Until(
	Func<T, TResult>^ condition
) sealed

Parameters

condition
Type: System..::..Func<(Of <(<'T, TResult>)>)>
A delegate taking an object of type T as its parameter, and returning a TResult.

Type Parameters

TResult
The delegate's expected return type.

Return Value

The delegate's return value.

See Also