Skip to content

secondsky/claude-skills / plugins/playwright/skills/playwright

playwright

Verified

Browser automation and E2E testing with Playwright. Auto-detects dev servers, writes clean test scripts. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use for cross-browser testing, visual regression, API testing, component testing in TypeScript/JavaScript and Python projects.

FileKindSize
SKILL.mdskill md14.4 KB
examples/form-test.jsscript876 B
examples/link-checker.jsscript1.8 KB
examples/responsive-test.jsscript1.1 KB
lib/helpers.jsscript13.2 KB
package.jsonmanifest1.0 KB
references/API_REFERENCE.mdmarkdown14.6 KB
run.jsscript7.1 KB

examples/form-test.js

View on GitHub
// Example: Fill and submit a form
const { chromium } = require('playwright');

const TARGET_URL = 'http://localhost:3000'; // Change as needed

(async () => {
  const browser = await chromium.launch({ headless: false, slowMo: 50 });
  const page = await browser.newPage();

  await page.goto(`${TARGET_URL}/contact`);

  // Fill form fields
  await page.fill('input[name="name"]', 'John Doe');
  await page.fill('input[name="email"]', 'john@example.com');
  await page.fill('textarea[name="message"]', 'This is a test message');

  // Submit form
  await page.click('button[type="submit"]');

  // Verify submission
  try {
    await page.waitForSelector('.success-message', { timeout: 5000 });
    console.log('✅ Form submitted successfully');
  } catch (e) {
    console.log('❌ Form submission failed or success message not found');
  }

  await browser.close();
})();
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall