Playwright
This skill harnesses Playwright's cross-browser automation capabilities to streamline testing workflows. Automate complex user interactions like authentication, data entry validation, and link integrity checks, then capture visual evidence through screenshots—all without manual intervention.
Playwright enables you to automate browser-based testing tasks by programmatically controlling user interactions across Chromium, Firefox, and WebKit. You can automate login flows, form validation, link checking, and capture screenshots to verify application behavior. Playwright's cross-browser automation capabilities streamline testing workflows by eliminating manual intervention and allowing you to run complex test scenarios at scale.
AI-generated summary based on this skill's SKILL.md
Install
EliasOulkadi/shokunin/playwright · repository language: HTML
git clone https://github.com/EliasOulkadi/shokunin
cp -r shokunin/.pack/skills/playwright ~/.claude/skills/playwrightFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I automate browser testing with Playwright?
Playwright enables you to automate browser-based testing tasks by programmatically controlling user interactions across Chromium, Firefox, and WebKit. You can automate login flows, form validation, link checking, and capture screenshots to verify application behavior. Playwright's cross-browser automation capabilities streamline testing workflows by eliminating manual intervention and allowing you to run complex test scenarios at scale.
Can Playwright be used for web scraping and data extraction?
Yes, Playwright supports web scraping and data extraction from websites. Beyond traditional testing, Playwright harnesses cross-browser automation to extract structured data from web pages. You can navigate to URLs, interact with page elements, and retrieve content programmatically, making it suitable for both testing workflows and data collection tasks.
How can I test login flow with Playwright?
Playwright allows you to automate complex user interactions like authentication flows by simulating user actions such as typing credentials, clicking buttons, and navigating through pages. You can record and replay login sequences, validate successful authentication, and verify error handling—all without manual intervention. This capability is central to Playwright's strength in automating browser-based testing tasks.
What does Playwright offer for responsive design and accessibility testing?
Playwright supports testing website responsiveness, accessibility, and visual appearance across multiple browsers and device configurations. You can simulate mobile devices, test across different viewport sizes, and validate accessibility standards. Combined with visual regression testing and accessibility audit capabilities, Playwright enables comprehensive cross-browser validation of your web applications.
How can I take screenshots and generate PDFs with Playwright?
Playwright provides built-in functionality to capture screenshots of webpages and generate PDFs for visual documentation and testing. These capabilities support auditing page performance and creating visual evidence of application state. You can automate screenshot capture as part of your testing workflow to verify visual appearance and generate reports.
Does Playwright support CI/CD integration and end-to-end testing infrastructure?
Playwright is designed to integrate with CI/CD pipelines and supports end-to-end testing infrastructure setup. You can monitor console and network behavior during tests, mock APIs, and run multi-browser tests in automated environments. The MIT license and cross-browser capabilities make Playwright suitable for establishing robust end-to-end testing infrastructure in modern development workflows.
SKILL.md
rendered from the published skill — quoted content, verbatim
name: playwright description: "Browser automation, web scraping, E2E testing, and visual regression with Playwright. Covers 30+ patterns: login flows, form testing, responsive design checks, broken link validation, API mocking, data extraction, PDF generation, accessibility audits (axe-core), performance budgets (Lighthouse), visual diffing, multi-browser testing (Chromium/Firefox/WebKit), mobile emulation, infinite scroll, shadow DOM, iframes, file downloads, auth state reuse, cookie consent handling, WebSocket monitoring, console error detection, HAR export, trace viewer, Docker CI, GitHub Actions, and parallel sharding. Use when user asks to test a website, take screenshots, check responsive design, automate a browser task, scrape data, validate forms, check broken links, test login, audit accessibility, or measure page performance. Do NOT use for unit testing, API-only testing, or static analysis. Requires Node.js 18+." triggers: - "Playwright" - "browser test" - "E2E test" - "visual test" - "screenshot" - "PDF generation" - "web scraping" - "browser automation" - "test form" - "test login" - "accessibility audit" - "visual regression" negatives:
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
.pack/skills/playwright/SKILL.md