Bagikan melalui


UITechnologyManager.GetElementFromPoint Method

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
Public MustOverride Function GetElementFromPoint ( _
    pointX As Integer, _
    pointY As Integer _
) As IUITechnologyElement
public abstract IUITechnologyElement GetElementFromPoint(
    int pointX,
    int pointY
)
public:
virtual IUITechnologyElement^ GetElementFromPoint(
    int pointX, 
    int pointY
) abstract
abstract GetElementFromPoint : 
        pointX:int * 
        pointY:int -> IUITechnologyElement
public abstract 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.

Implements

IUITechnologyManager.GetElementFromPoint(Int32, Int32)

.NET Framework Security

See Also

Reference

UITechnologyManager Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

IUITechnologyElement