# takeScreenshot

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts#L41)

Take a screenshot with a descriptive name

## Signature

```ts
async function takeScreenshot(page: Page, name: string): Promise<Buffer>
```

## Parameters

| Name | Type |
|---|---|
| `page` | `Page` |
| `name` | `string` |

**Returns:** `Promise<Buffer>`
