IsChecked
bool IsChecked(string control)Description
Checks whether a checkbox or radio button is currently checked.
This uses the TogglePattern in UIAutomation.
Typical use cases
- CheckBox
- RadioButton
Parameters
- control - Identifier of the UI control.
Returns
- bool - True if checked, false otherwise.
Example
void main()
{
VerifyEqual(IsChecked("CHK_REMEMBERME"), true);
}