WaitUntilExists<T>(T,Int32) Method
Waits until the test object exists or the timeout elapses. This method is useful for synchronizing your test with your application.

C# Syntax

public static bool WaitUntilExists<T>( 
   this T testObject,
   int timeout
where T: ITestObject


The test object to wait for until it exists.

Timeout (in seconds) to wait until the test object becomes enabled.

Type Parameters

A class implementing ITestObject

Return Value

True if the test object exists before the timeout is reached; otherwise, false.