Verify if the radio button currently selected.

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

Syntax

C#
public bool IsSelected { get; }
Visual Basic (Declaration)
Public ReadOnly Property IsSelected As Boolean
Visual C++
public:
virtual property bool IsSelected {
	bool get () sealed;
}

Return Value

True if the radio button is selected, otherwise false

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