Share via


IUITechnologyManager.GetElementFromPoint Method

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

Retrieves the element that is located at the given screen coordinates.

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

Syntax

'Declaration
Function GetElementFromPoint ( _
    pointX As Integer, _
    pointY As Integer _
) As IUITechnologyElement
IUITechnologyElement GetElementFromPoint(
    int pointX,
    int pointY
)
IUITechnologyElement^ GetElementFromPoint(
    int pointX, 
    int pointY
)
abstract GetElementFromPoint : 
        pointX:int * 
        pointY:int -> IUITechnologyElement
function GetElementFromPoint(
    pointX : int, 
    pointY : int
) : IUITechnologyElement

Parameters

  • pointX
    Type: Int32

    The x coordinate of the screen location.

  • pointY
    Type: Int32

    The y coordinate of the screen location.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The element at the provided location.

.NET Framework Security

See Also

Reference

IUITechnologyManager Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

IUITechnologyElement