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

C# Syntax

public static bool WaitUntilVisible<T>( 
   this T visibleProvider,
   int timeout
where T: IVisibleProvider


The test object to wait for until it becomes visible.

Timeout (in milliseconds) to wait until the test object becomes visible.

Type Parameters

A class implementing IVisibleProvider

Return Value

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