Share via


UIMap.GetUIObjectNameForAction Method

Returns the UI object that is the subject of the provided UI test action.

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

Syntax

'Declaration
Public Function GetUIObjectNameForAction ( _
    action As UITestAction _
) As String
public string GetUIObjectNameForAction(
    UITestAction action
)
public:
String^ GetUIObjectNameForAction(
    UITestAction^ action
)
member GetUIObjectNameForAction : 
        action:UITestAction -> string 
public function GetUIObjectNameForAction(
    action : UITestAction
) : String

Parameters

Return Value

Type: System.String
The required UI object.

.NET Framework Security

See Also

Reference

UIMap Class

Microsoft.VisualStudio.TestTools.UITest.Common.UIMap Namespace

UIObject

UITestAction