--- title: "Importing and exporting scenarios" slug: "importing-and-exporting-scenarios" updated: 2026-08-18T07:10:46Z published: 2026-08-18T07:10:46Z canonical: "helpcenter.autify.com/importing-and-exporting-scenarios" --- > ## 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. # Importing and exporting scenarios > [!NOTE] > **This feature is only available for certain licenses and plans.** Importing and exporting scenarios is simple, yet powerful in Autify Nexus. It helps you save time, supports code-based workflows, and allows for easier sharing and collaboration across teams — especially between developers and QA engineers — to review, edit and manage scenarios together. ## Importing a scenario You can import a scenario using either a previously-exported Autify Nexus scenario file or a Playwright code file. To import a scenario: 1. Navigate to the **Scenario** window 2. Click the **Import** button at the top-right of the screen 3. Select the file that you want to import ### Importing an Autify Nexus scenario You can import a previously-exported Autify Nexus scenario that has the extension `.autifyscenario`. ### Importing Playwright code You can import any Playwright code written in JavaScript, including Playwright code that was exported from an Autify Nexus scenario. The code must be saved as a `.js` file. Each test block (`test(...)`) in the Playwright code will be converted into a separate scenario in Autify Nexus. Playwright code that cannot be translated directly into an Autify Nexus step will be added as a generic Playwright step in the scenario. For example, importing the following code will generate two individual scenarios in Autify Nexus — one for `test('has title')` and another for `test(‘get started link’)` . ```javascript import { test, expect } from '@playwright/test'; test('has title', async ({ page }) => {  await page.goto('https://playwright.dev/');  // Expect a title "to contain" a substring.  await expect(page).toHaveTitle(/Playwright/); }); test('get started link', async ({ page }) => {  await page.goto('https://playwright.dev/');  // Click the get started link.  await page.getByRole('link', { name: 'Get started' }).click();  // Expects page to have a heading with the name of Installation.  await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible(); }); ``` ## Exporting a scenario You can export recorded scenarios as either a native `.autifyscenario` file or Playwright code file written in JavaScript and saved as a `.js` file. To export a scenario: 1. Navigate to the **Scenario** window 2. Open a scenario by clicking its name 3. Click the **Export** button at the top-right of the screen 4. Choose the appropriate file type 5. Follow the dialog prompt and click **Export** to create your file ### Exporting to .autifyscenario File Exports the scenario in a format compatible with Autify Nexus. Settings that can be changed are not included in the exported content: - Older versions of the scenario - Directory structure ### Export to Playwright Code Exports the scenario as Playwright code. Settings that can be changed and the following items are not included in the exported content: - Labels - Directory structure - Window size - Files - Scenario description - Step memos - Step screenshots - Workspace variables - Disabled steps - Shared data tables > [!NOTE] > Note about visual assertions > > If the exported scenario includes a step for `Assert page visual change`, you must use the `--update-snapshots` flag when running tests in Playwright. For more details, refer to [this page](https://playwright.dev/docs/test-snapshots#updating-screenshots).