IUITechnologyManager.Search Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Searches for an element in the parent element that matches the condition of the provided query ID cookie.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Object[] Search(
	Object parsedQueryIdCookie,
	IUITechnologyElement parentElement,
	int maxDepth
)

Parameters

parsedQueryIdCookie
Type: System.Object
A previously parsed query cookie.
parentElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
An IUITechnologyElement object.
maxDepth
Type: System.Int32
An int that indicates how deep into the control hierarchy to search.

Return Value

Type: System.Object[]
An array of elements that match the query, or null if no elements are found.

ExceptionCondition
NotSupportedException

This implementation does not support this method.

Community Additions

ADD
Show: