Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyElementProxy.GetQueryIdForRelatedElement Method (UITestElementKind, Object, Int32)

 

Gets the QueryId for the related element specified by UITestElementKind.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public override string GetQueryIdForRelatedElement(
	UITestElementKind relatedElement,
	object additionalInfo,
	out int maxDepth
)

Parameters

relatedElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestElementKind

The kind of related element.

additionalInfo
Type: System.Object

Any additional information that is required.

maxDepth
Type: System.Int32

The maximum depth to search under this element to find the required component.

Return Value

Type: System.String

The QueryId of the element.

Return to top
Show: