> 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-cookie.md).

# Check Cookie

Check Cookie compares a named browser cookie against what you expect. Use it to verify session, preference, or tracking cookies set during the journey.

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

## When to use it

* Confirm a consent or preference cookie was set after the user chooses an option.
* Verify a session cookie exists with the expected value after login.
* Store the cookie first with [Store cookie](/test-steps/data/store-cookie.md) when a later step needs the same value.

## Configure

### Basics

| Field               | What to set                                                                    |
| ------------------- | ------------------------------------------------------------------------------ |
| **Cookie Name**     | Name of the cookie to read                                                     |
| **Comparison Type** | [Comparison Type](/test-step-options/comparison-type.md) (`equals` by default) |
| **Cookie 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

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

**Tags:** `check`, `cookie`, `value`, `test`, `expect`, `assert`
