> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/action/clear.md). Agents can also search and read this documentation through its [MCP server](https://docs.does.qa/~gitbook/mcp).

# Clear

Clear the text in an input Element.

Clear removes the current value from an input. Use it before [Set value](https://docs.does.qa/test-steps/action/set-value.md) when the field may already contain text, or when you need an empty field for the next assertion.

![Clear Test Step](https://static.does.qa/assets/nodes/action_input_clearValue.png)

## When to use it

* Empty a search box or form field before typing a new value.
* Prefer the **Clear Value** option on Set value when you clear and type in one step.

## Configure

### Basics

| Field       | What to set                                                                      |
| ----------- | -------------------------------------------------------------------------------- |
| **Element** | The input [Element](https://docs.does.qa/elements/creating-elements.md) to clear |

### Advanced

| Field                                 | What to set                                                              |
| ------------------------------------- | ------------------------------------------------------------------------ |
| **Status on fail**                    | [Failed Status](https://docs.does.qa/test-step-options/failed-status.md) |
| **When should screenshots be taken?** | `Always` (default) or `On Failures`                                      |

## Related

* [Set value](https://docs.does.qa/test-steps/action/set-value.md)
* [Send keys](https://docs.does.qa/test-steps/action/send-keys.md)
* [Action](https://docs.does.qa/test-steps/action.md)

**Tags:** `action`, `input`, `clear`, `clearValue`
