WaitUntil<T>(T,Func<T,Boolean>) Method
Waits until a certain condition is met in the specified boolean function or the timeout elapses. This method is useful for synchronizing your test with your application.
This overload uses a 20 second timeout.
C# Syntax
public static bool WaitUntil<T>( 
   this T testObject,
   Func<T,bool> funcToRun
where T: ITestObject


The test object that is passed to the funcToRun function.
A function returning a boolean result. The function runs until the function result is true, or until the object synchronization timeout elapses.

Type Parameters

A class implementing ITestObject

Return Value

Boolean value returned from the funcToRun function.