> 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/data/store-element-text.md).

# Store Element Text

Store element text reads the text of an Element and saves it under a storage name. Use it when a later step needs that text as a [Value](/values/value-store.md), such as an order number shown on the page.

![Store element text Test Step](https://app.does.qa/screenshots/node/data_store_elementText.png)

## When to use it

* Capture an ID, confirmation code, or label from the page.
* Prefer [Store element value](/test-steps/data/store-element-value.md) for input values, and [Store element attribute](/test-steps/data/store-element-attribute.md) for attributes such as `href`.

## Configure

### Basics

| Field            | What to set                                           |
| ---------------- | ----------------------------------------------------- |
| **Element**      | The [Element](/elements/creating-elements.md) to read |
| **Storage Name** | Name later steps will use                             |

### Advanced

| Field              | What to set                                          |
| ------------------ | ---------------------------------------------------- |
| **Status on fail** | [Failed Status](/test-step-options/failed-status.md) |

## Related

* [Store element value](/test-steps/data/store-element-value.md)
* [Store element attribute](/test-steps/data/store-element-attribute.md)
* [Set value](/test-steps/data/set-value.md)
* [Data](/test-steps/data.md)

**Tags:** `data`, `store`, `element`, `text`
