> 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/set-sessionstorage.md).

# Set SessionStorage

Set SessionStorage writes a key and value into browser `sessionStorage`. Use it to seed tab-scoped state before the application reads it on the same page session.

![Set sessionStorage Test Step](https://app.does.qa/screenshots/node/data_sessionStorage_set.png)

## When to use it

* Preload checkout or wizard state that lives only for the current tab.
* Set known test data so the UI opens in a predictable state.
* Pair with [Check SessionStorage](/test-steps/check/check-sessionstorage.md) or [Store SessionStorage](/test-steps/data/store-sessionstorage.md) to confirm or reuse the value.

## Configure

### Basics

| Field         | What to set                                                     |
| ------------- | --------------------------------------------------------------- |
| **Key Name**  | `sessionStorage` key to write                                   |
| **Key Value** | Value to store as text and/or a [Value](/values/value-store.md) |

### Advanced

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

## Related

* [Store SessionStorage](/test-steps/data/store-sessionstorage.md)
* [Delete SessionStorage](/test-steps/data/delete-sessionstorage.md)
* [Check SessionStorage](/test-steps/check/check-sessionstorage.md)
* [Data](/test-steps/data.md)

**Tags:** `data`, `sessionStorage`, `set`, `save`, `add`
