Click or drag to resize

RemoteDriver.Find<T> Method (ISearchPattern, Int32)

Searches for an object that matches the specified pattern. The search depth is specified as an optional parameter. The default search timeout AutoWaitTimeout is used.

Namespace:  SmartBear.TestLeft
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
public T Find<T>(
	ISearchPattern pattern,
	int depth = 1
)
where T : class, IObjectTreeNode

Parameters

pattern
Type: SmartBear.TestLeft.ISearchPattern
The search pattern.
depth (Optional)
Type: System.Int32
The search depth.

Type Parameters

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

Return Value

Type: T
The found object.

Implements

IDriver.Find<T>(ISearchPattern, Int32)
Exceptions
ExceptionCondition
ObjectTreeNodeNotFoundExceptionWill be thrown if no object that meets the specified criteria is found.
See Also