UnCheck (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 UnCheck()
Visual Basic (Declaration)
Public Sub UnCheck
Visual C++
public:
virtual void UnCheck() 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;
UICheckBox invCB = calcWin[@"Inv", @"Button", @"140"] as UICheckBox;
invCB.Check();
MessageBox.Show("See the Inv Button is checked, now unchek it");
invCB.UnCheck();

See Also