Sets the focus of the control
Namespace:
QAliber.Engine.ControlsAssembly: 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#
The call to SetFocus should bring it to front
Desktop.UIA[@"Calculator", @"SciCalc", @"UIAWindow"].SetFocus();