How-to
Clear field (clear)
Clear field (clear)
Clears the Target value.
Step model
action_name | clear |
| Group | Input |
| Target | Required |
| Value | Unused |
| expected_value | Unused |
| TEST_ACCOUNT | Forbidden |
| Do not confuse with | fill, pressSequentially |
Target/Value facts match the source-of-truth catalog and Autotest step.
Prerequisites
- Target is an editable field.
Steps
- Add a
clearstep. - Set Target.
- Leave Value empty.
- Save.
The step is stored on the autotest. Next - neighbouring steps or autotest run creation.
Examples
Clear search
Fields in the UI:
| Field | Value |
|---|---|
action_name | clear |
| Target | kind LABEL, value Search |
Step JSON fragment (copy-paste):
json
{
"action_name": "clear",
"target": {
"kind": "LABEL",
"value": "Search"
}
}Common mistakes
- An empty
filldoes not replaceclearwhen the product reacts to the clear action itself.
Screenshots
Screenshots of the step form for clear will be added here in a later pass.
Did this page help?