How-to

Disabled assert (toBeDisabled)

Disabled assert (toBeDisabled) ​

Expect assertion: Target is disabled.

Step model ​

action_nametoBeDisabled
GroupExpect
TargetRequired
ValueUnused
expected_valueUnused
TEST_ACCOUNTForbidden
Do not confuse withtoBeEnabled, toBeHidden

Target/Value facts match the source-of-truth catalog and Autotest step.

Prerequisites ​

  1. Target is a control that can be disabled.

Steps ​

  1. Add a toBeDisabled step.
  2. Set Target.
  3. Leave Value empty.
  4. Save.

The step is stored on the autotest. Next - neighbouring steps or autotest run creation.

Examples ​

Save button is disabled ​

Fields in the UI:

FieldValue
action_nametoBeDisabled
Targetkind ROLE, value button, name Save

Step JSON fragment (copy-paste):

json
{
  "action_name": "toBeDisabled",
  "target": {
    "kind": "ROLE",
    "value": "button",
    "name": "Save"
  }
}

Common mistakes ​

  • Do not confuse a disabled button with a hidden one. Use toBeHidden for hidden.

Screenshots ​

Screenshots of the step form for toBeDisabled will be added here in a later pass.

Version 1.0.0 · Last updated 2026-10-03

Did this page help?