--- title: "Granting permissions" slug: "granting-permissions" updated: 2025-05-30T03:31:53Z published: 2025-05-30T03:31:53Z canonical: "helpcenter.autify.com/granting-permissions" --- > ## Documentation Index > Fetch the complete documentation index at: https://helpcenter.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # Granting permissions Some web features, such as clipboard access or browser notifications, require user permission. If your test involves one of these features, you'll need to grant permission in advance to avoid a popup like this: ![](https://cdn.document360.io/c040854c-2c75-49d0-98e1-43f462e8657e/Images/Documentation/Screenshot 2025-05-26 at 16.44.34.png?sv=2026-02-06&spr=https&st=2026-10-27T19%3A42%3A52Z&se=2026-10-27T20%3A42%3A52Z&sr=c&sp=r&sig=QAITMe8n9qMMGEX8ATHOGRVU6FS13wEzyEGaftTmUv4%3D) ## How to set it up Before running the step that triggers the browser’s permission request, pre-approve the permission using a Playwright code step. You can find the full list of supported permissions in [Playwright’s documentation](https://playwright.dev/docs/api/class-browsercontext#browser-context-grant-permissions-option-permissions). Here’s an example for granting clipboard access (read and write): ```typescript await context.grantPermissions(["clipboard-read", "clipboard-write"]); ``` This should be placed **before** the step that uses the permission. Granting the permission *after* the request may not work in all cases. You can grant multiple permissions at once by listing them in the array as shown above. ## Granting permissions to a specific website By default, permissions will be granted to **all** websites during the test. If you only want to allow access on a specific domain, use the `origin` option: ```typescript await context.grantPermissions(  ["clipboard-read", "clipboard-write"],  { origin: "https://example.com" } ); ```