Sets the focus of the control

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

Syntax

C#
public virtual void SetFocus()
Visual Basic (Declaration)
Public Overridable Sub SetFocus
Visual C++
public:
virtual void SetFocus()

Remarks

In UIAWindow it should activate the window

Examples

Open calc and hide it below windows before running this sample.
CopyC#
Desktop.UIA[@"Calculator", @"SciCalc", @"UIAWindow"].SetFocus();
The call to SetFocus should bring it to front

See Also