We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

UIMap.GetUIObjectNameForElement Method

Returns the name of the UI object that corresponds to the provided UI element.

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

public string GetUIObjectNameForElement(
	UITechnologyElement element
)

Return Value

Type: String
The name of the corresponding UI object.

Show: