How-to
Checked assert (toBeChecked)
Checked assert (toBeChecked)
Expect assertion: the Target checkbox or radio is checked.
Step model
action_name | toBeChecked |
| Group | Expect |
| Target | Required |
| Value | Unused |
| expected_value | Unused |
| TEST_ACCOUNT | Forbidden |
| Do not confuse with | check, uncheck |
Target/Value facts match the source-of-truth catalog and Autotest step.
Prerequisites
- Target is a checkbox or a radio button.
Steps
- Add a
toBeCheckedstep. - Set Target.
- Leave Value empty.
- Save.
The step is stored on the autotest. Next - neighbouring steps or autotest run creation.
Examples
Remember me
Fields in the UI:
| Field | Value |
|---|---|
action_name | toBeChecked |
| Target | kind LABEL, value Remember me |
Step JSON fragment (copy-paste):
json
{
"action_name": "toBeChecked",
"target": {
"kind": "LABEL",
"value": "Remember me"
}
}Common mistakes
checkturns the control on.toBeCheckedonly asserts that it is already on.
Screenshots
Screenshots of the step form for toBeChecked will be added here in a later pass.
Did this page help?