Click or drag to resize

RemoteDriverTryFindT Method (ISearchPattern, Int32, Int32, T)

Searches for an object that matches the specified pattern. The search depth and timeout are specified as parameters.

Namespace:  SmartBear.TestLeft
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
public bool TryFind<T>(
	ISearchPattern pattern,
	int depth,
	int timeout,
	out T res
)
where T : class, IObjectTreeNode

Parameters

pattern
Type: SmartBear.TestLeftISearchPattern
The search pattern.
depth
Type: SystemInt32
The search depth.
timeout
Type: SystemInt32
The timeout used to wait for the object.
res
Type: T
The found object or null.

Type Parameters

T
The interface that will be implemented in the returned object.

Return Value

Type: Boolean
True if the object was found. Otherwise, false.

Implements

IDriverTryFindT(ISearchPattern, Int32, Int32, T)
See Also