playwright
Browser automation with Playwright MCP. Use for web scraping, testing, screenshots, and browser interactions.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- mcp
- { "playwright": { "args": [ "@playwright/mcp@latest" ], "command": "npx" } }
- description
- Browser automation with Playwright MCP. Use for web scraping, testing, screenshots, and browser interactions.
03 SKILL.md 正文
Playwright Browser Automation
This skill provides browser automation capabilities via the Playwright MCP server.
When to Use
Use this skill for:
- Web scraping and data extraction
- Automated browser testing
- Taking screenshots of web pages
- Form filling and user interaction simulation
- Monitoring and validation of web applications
- DOM element inspection and manipulation
Capabilities
Through the Playwright MCP, this skill provides:
Navigation & Page Control
- Navigate to URLs
- Take screenshots (full page or specific elements)
- Execute JavaScript in page context
- Get page content and HTML
Element Interaction
- Click elements
- Fill in forms and inputs
- Select dropdown options
- Hover over elements
- Press keyboard keys
Inspection & Validation
- Get element attributes and properties
- Extract text content
- Verify element existence
- Check element visibility
- Validate page state
Advanced Features
- Handle multiple tabs/windows
- Wait for specific conditions
- Capture network requests
- Manage browser cookies
- Handle file uploads/downloads
Usage Examples
Basic Navigation and Screenshot
Use skill playwright to navigate to https://example.com and take a screenshot
Form Automation
Use skill playwright to:
1. Navigate to https://example.com/login
2. Fill in username field with "test@example.com"
3. Fill in password field with "password123"
4. Click the submit button
5. Take a screenshot of the result
Data Extraction
Use skill playwright to scrape product prices from https://example.com/products
Testing
Use skill playwright to test the checkout flow on our staging site
Notes
- The Playwright MCP server will be automatically started when this skill is used
- Browser runs in headless mode by default
- Screenshots are saved to the current directory
- Supports modern web standards (ES6+, Web Components, etc.)
- Works with SPA frameworks (React, Vue, Angular)
Requirements
- Node.js 14+ (for npx)
- Internet connection (to install MCP server on first use)
- Sufficient disk space for Chromium browser
Troubleshooting
If the skill fails to start:
- Verify Node.js is installed:
node --version - Check network connectivity
- Try manual installation:
npm install -g @playwright/mcp - Check system resources (RAM, disk space)
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.