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.

UITechnologyElement.QueryId Property

 

Gets an identifier object that can be used to uniquely identify and find this element.

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

public abstract IQueryElement QueryId { get; }

Property Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IQueryElement

The query identifier.

In some cases the QueryId contains the complete element hierarchy, but most of the time it contains only important ancestors of the element. The technology manager must decide which ancestor to capture in the hierarchy by appropriately setting the IQueryElement.Ancestor property of each element.

The APIs in condition classes, such as AndCondition.ToString and AndCondition.Parse, may be used to convert from this element class to string or to create an instance of this element from string.

Return to top
Show: