Object Model Reference for GUI Testing > Utility Objects > GetElementFromPoint Method

UIAutomation Object

Description

Enables you to access UI Automation native methods.

For more details on UI Automation, see the section on extending UFT object identification in the HPE Unified Functional Testing User Guide.

Methods and Properties

Method GetElementFromPoint Returns an object at the selected coordinates.
Method GetFocusedElement Returns the currently focused object.
GetRootElement Returns the Desktop object (which is the root element of all objects in the hierarchy).

Back to top

GetElementFromPoint Method

Description

Returns an object at the selected coordinates.

Syntax

UIAutomation.GetElementFromPoint x, y

Arguments

x The x-coordinate at which to find the object.
y The y-coordinate at which to find the object.

Back to top

GetFocusedElement Method

Description

Returns the currently focused object.

Syntax

UIAutomation.GetFocusedElement

Return Value

UI Automation object


Back to top

GetRootElement Property

Description

Returns the Desktop object (which is the root element of all objects in the hierarchy).

Syntax

UIAutomation.GetRootElement

Returns

Desktop object


Back to top

See also: