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

# Scan

Scan reads a QR or barcode from an [Element](/elements/creating-elements.md) on the page and stores the result in the [Value Store](/values/value-store.md). Use it when the Flow must capture a code shown in the UI for a later step or check.

![Scan Test Step](https://app.does.qa/screenshots/node/action_scan.png)

## When to use it

* Capture a QR code displayed for mobile login or two-factor setup.
* Read a barcode rendered in the application and assert or reuse the decoded text.
* Choose **Response** in Advanced when the Flow needs parsed fields instead of raw text.

## Configure

### Basics

| Field                     | What to set                                                       |
| ------------------------- | ----------------------------------------------------------------- |
| **Element**               | The [Element](/elements/creating-elements.md) that shows the code |
| **Response Storage Name** | Name for the scan result in the Value Store                       |

### Advanced

| Field              | What to set                                          |
| ------------------ | ---------------------------------------------------- |
| **Response**       | `Text` (default), `Parsed Data`, or `Complete`       |
| **Status on fail** | [Failed Status](/test-step-options/failed-status.md) |

## Related

* [Store element text](/test-steps/data/store-element-text.md)
* [Check value](/test-steps/check/check-value.md)
* [Action](/test-steps/action.md)

**Tags:** `action`, `scan`, `qr`, `code`, `barcode`
