Skip to main content
DevToolbox

Test Automation Boilerplate

Nothing leaves your browser

Describe a web flow step by step, then pick Playwright (TypeScript or Python) or Selenium (Python) and copy the test file. Everything is generated in your browser.

Templates

Steps

  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.
  6. 6.

example.spec.ts

import { test, expect } from '@playwright/test';

test('login flow', async ({ page }) => {
  await page.goto('https://example.com/login');
  await page.locator('#email').fill('[email protected]');
  await page.locator('#password').fill('secret');
  await page.locator('button[type=submit]').click();
  await expect(page).toHaveURL(new RegExp('\\/dashboard'));
  await expect(page.locator('h1')).toContainText('Welcome');
});

Run with: npx playwright test