> 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/check/check-localstorage.md).

# Check LocalStorage

Check LocalStorage compares a `localStorage` key against what you expect. Use it to verify client side data the application stores in the browser.

![Check localStorage Test Step](https://app.does.qa/screenshots/node/check_localStorage_value.png)

## When to use it

* Confirm a feature flag or preference was saved after the user changes a setting.
* Verify application state in `localStorage` after a login or onboarding step.
* Set the key first with [Set LocalStorage](/test-steps/data/set-localstorage.md) when the Flow needs a known starting value.

## Configure

### Basics

| Field               | What to set                                                                    |
| ------------------- | ------------------------------------------------------------------------------ |
| **Key Name**        | `localStorage` key to read                                                     |
| **Comparison Type** | [Comparison Type](/test-step-options/comparison-type.md) (`equals` by default) |
| **Value**           | Expected value 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)                 |
| **When should screenshots be taken?** | `Always` or `On Failures` (default)                                  |
| **Value Standardization**             | [Value Standardization](/test-step-options/value-standardization.md) |

## Related

* [Set LocalStorage](/test-steps/data/set-localstorage.md)
* [Store localStorage](/test-steps/data/store-localstorage.md)
* [Check Cookie](/test-steps/check/check-cookie.md)
* [Check](/test-steps/check.md)

**Tags:** `check`, `localStorage`, `value`, `test`, `expect`, `assert`, `data`
