UtilUIAutomationWaitForWindow(String, String, Double) Method

Waits the specified amount of time for a top-level window to be shown in the screen, whose class name and window title matches the specified parameters.

Definition

Namespace: DevCase.Core.Diagnostics.Processes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IntPtr WaitForWindow(
	string className,
	string title,
	double timeout
)

Parameters

className  String
The window class name.
title  String
The window title. This value can be String.
timeout  Double
The timeout interval, in milliseconds. This value can be Infinite.

Return Value

IntPtr
A handle to the top-level window whose class name and window name matches the specified parameters.

Returns Zero if the window is not found between the specified timeout interval.

See Also