Check (without click) the checkbox control

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

Syntax

C#
public void Check()
Visual Basic (Declaration)
Public Sub Check
Visual C++
public:
virtual void Check() sealed

Remarks

Note the check action is done without click (you can verify check state and click) so click events wont be fired only onCheck events.

Examples

Launch calc and check the Inv checkbox
CopyC#
System.Diagnostics.Process.Start("calc");
UIAWindow calcWin = Desktop.UIA[@"Calculator", @"SciCalc", @"UIAWindow"] as UIAWindow;
UIACheckBox invCB = calcWin[@"Inv", @"Button", @"140"] as UIACheckBox;
invCB.Check();

See Also