Click or drag to resize

IObjectTreeNodeFindT Method (ISearchPattern, Int32, Int32)

Searches for an object that matches the specified pattern.

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

Parameters

pattern
Type: SmartBear.TestLeftISearchPattern
The search pattern.
depth
Type: SystemInt32
The search depth.
timeout
Type: SystemInt32
The timeout, in milliseconds, used to wait for the object.

Type Parameters

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

Return Value

Type: T
The found object.
Exceptions
ExceptionCondition
ObjectTreeNodeNotFoundExceptionWill be thrown if no object that meets the specified criteria is found.
WebExceptionWill be thrown if there are network problems.
See Also