Get the UIControl from the point the cursor is on

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public UIControlBase GetControlFromCursor()
Visual Basic (Declaration)
Public Function GetControlFromCursor As UIControlBase
Visual C++
public:
virtual UIControlBase^ GetControlFromCursor() sealed

Return Value

UIControl from the mouse location

Implements

IControlLocator..::.GetControlFromCursor()()()

Examples

CopyC#
Desktop.UIA.MoveMouseTo(new Point(300, 300));
UIControl control = Desktop.UIA.GetControlFromCursor();
string controlName = control.Name;

See Also