Select the radio button.

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 Select()
Visual Basic (Declaration)
Public Sub Select
Visual C++
public:
virtual void Select() sealed

Examples

CopyC#
System.Diagnostics.Process.Start("calc");
UIAWindow calcWin = Desktop.UIA[@"Calculator", @"SciCalc", @"UIAWindow"] as UIAWindow;
UIARadioButton selectBin = calcWin[@"Bin", @"Button", @"309"] as UIARadioButton;
UIARadioButton selectDec = calcWin[@"Dec", @"Button", @"307"] as UIARadioButton;
if (!selectBin.IsSelected)
    selectBin.Select();

System.Threading.Thread.Sleep(3000);
MessageBox.Show("Change selection back to Dec");
selectDec.Select();

See Also