This documentation is archived and is not being maintained.

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)

IUITechnologyElement GetElementFromPoint(
	int pointX,
	int pointY


Type: System.Int32
The x coordinate of the screen location.
Type: System.Int32
The y coordinate of the screen location.

Return Value

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