Welcome to the UFT Testing Extensibility API Reference > UFT Extensibility Agent library 1.3 > Interfaces > ITestable Interface > Methods > GetElementFromPoint Method
UFT Extensibility Agent library 1.3
GetElementFromPoint Method
The x-coordinate.
The y-coordinate.
Description
Returns the ID of the object at the specified point.
Syntax
Visual Basic
Public Function GetElementFromPoint( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Variant
Parameters
x
The x-coordinate.
y
The y-coordinate.
Return Type
The object ID of the object that encloses the area including the specified point.
Remarks
The x- and y-coordinates are in pixels and represent the absolute position on the monitor.
See Also