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

# Set Webcam

Set webcam chooses the image the browser presents as the camera stream. Use it before a journey that asks for a webcam photo or scan.

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

## When to use it

* Feed a known image into an ID or selfie check.
* Use [Generate image](/test-steps/runner/generate-image.md) or a download earlier in the Test Case, then point Mode at that file.
* Keep **Default** when the journey only needs any camera stream.

## Example Flow

Generate an image, then set it as the webcam stream.

![Generate image then Set webcam](/files/jQnnIN0eigOHO8rbLGnu)

## Configure

### Basics

| Field              | What to set                                                 |
| ------------------ | ----------------------------------------------------------- |
| **Mode**           | `Default` (default), `Last Downloaded`, or `Generated File` |
| **Generated File** | The generated image or file when Mode is Generated File     |

### 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)                  |

{% hint style="info" %}
**Pro tip:** Set the webcam before the page opens the camera prompt so the stream is ready when the app asks for it.
{% endhint %}

## Related

* [Generate image](/test-steps/runner/generate-image.md)
* [Generate file](/test-steps/runner/generate-file.md)
* [File](/test-steps/action/file.md)
* [Runner](/test-steps/runner.md)

**Tags:** `runner`, `webcam`, `set`, `camera`, `stream`, `file`, `image`
