IsEnabled
bool IsEnabled(string control)Description
Checks whether a UI control is currently enabled (interactive).
This corresponds to the IsEnabledProperty in UIAutomation.
Typical use cases
- Disabled buttons
- Greyed out menu items
Parameters
- control - Identifier of the UI control.
Returns
- bool - True if enabled, false otherwise.
Example
void main()
{
VerifyEqual(IsEnabled("BTN_SUBMIT"), false);
}