Playwright E2E testing and web scraping. Use for tests, automation scripts, WebSockets, multiple contexts, parallel execution, flaky test debugging, playwright.config.ts, or GitHub Actions CI.
Ships in playwright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
TypeScript/JavaScript patterns for E2E testing and web scraping.
import { test, expect } from '@playwright/test';
test('should work', async ({ page }) => {
await page.goto('/');
await page.getByRole('button', { name: 'Submit' }).click();
await expect(page.getByText('Success')).toBeVisible();
});
import { chromium } from 'playwright';
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://example.com');
const data = await page.locator('.item').allTextContents();
await browser.close();
page.getByRole() - accessibility-based (buttons, links, headings)page.getByTestId() or [data-testid="..."] - explicit test hooks (most reliable)page.getByText() - visible text (exact match preferred)page.locator() - CSS/XPath fallbackhas-text() for ButtonsBad - fragile, breaks if text changes:
page.locator('button:has-text("Start Draft")')
Good - stable, explicit test contract:
page.locator('[data-testid="startDraftButton"]')
// or
page.getByTestId('startDraftButton')
When adding new UI elements, always add data-testid attributes for testability.
references/e2e/ci.md - GitHub Actions CI, browser caching, sharding, Docker pitfallsreferences/e2e/config.md - playwright.config.ts, projects, global setupreferences/e2e/performance.md - Speed optimization, resource blocking, wait strategiesreferences/e2e/parallel.md - Workers, sharding, test parallelizationreferences/e2e/debugging.md - Traces, flaky tests, CI artifactsreferences/e2e/websockets.md - WS listener setup, wait for message, collect, debugreferences/e2e/websockets-advanced.md - Multi-user, mock server, reconnection, assert connectedreferences/scraping/performance.md - Parallel contexts, concurrency, speedreferences/scraping/contexts.md - Rotation, proxies, anti-detectionreferences/scraping/network.md - Request interception, blocking, mockingreferences/scraping/websockets.md - WS data capture, live feedsreferences/scraping/extraction.md - Data extraction, pagination, infinite scrollconfig.yaml (opens in a new tab)references/e2e/ci.md (opens in a new tab)references/e2e/config.md (opens in a new tab)references/e2e/debugging.md (opens in a new tab)references/e2e/parallel.md (opens in a new tab)references/e2e/performance.md (opens in a new tab)references/e2e/websockets-advanced.md (opens in a new tab)references/e2e/websockets.md (opens in a new tab)references/scraping/contexts.md (opens in a new tab)references/scraping/extraction.md (opens in a new tab)references/scraping/network.md (opens in a new tab)references/scraping/performance.md (opens in a new tab)references/scraping/websockets.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/playwright:playwrightfrom playwright
npx claudepluginhub kettleofketchup/kettleofskills --plugin playwright