pr-e/openclaw-master-skills/playwright
Claude Code and agent skill by pr-e/openclaw-master-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Browser automation and web scraping with Playwright. Forms, screenshots, data extraction. Works standalone or via MCP. Testing included.
Install
npx vskill@latest install pr-e/openclaw-master-skills/playwrightSKILL.md
When to Use
Use this skill when you need to:
- Scrape a website (static or JavaScript-rendered)
- Automate form filling (login, checkout, data entry)
- Test a web application (E2E tests, visual regression)
- Take screenshots or PDFs of web pages
- Extract data from tables, lists, or dynamic content
Decision Matrix
| Scenario | Method | Speed | |
|---|---|---|---|
| Static HTML | web_fetch tool | ⚡ Fastest | |
| JavaScript-rendered | Playwright direct | 🚀 Fast | |
| AI agent automation | MCP server | 🤖 Integrated | |
| E2E testing | @playwright/test | ✅ Full framework |
Quick Reference
| Task | File | |
|---|---|---|
| E2E testing patterns | testing.md | |
| CI/CD integration | ci-cd.md | |
| Debugging failures | debugging.md | |
| Web scraping patterns | scraping.md | |
| Selector strategies | selectors.md |
Core Rules
- Never use `waitForTimeout()` - always wait for specific conditions (element, URL, network)
- Always close the browser - call
browser.close()to prevent memory leaks - Prefer role selectors -
getByRole()survives UI changes better than CSS - Handle dynamic content - use
waitFor()before interacting with elements - Persist auth state - use
storageStateto save and reuse login sessions
Quick Start - Common Tasks
Scrape a Page
Fill a Form and Submit
Take a Screenshot
Extract Table Data
Selector Priority
| Priority | Method | Example | |
|---|---|---|---|
| 1 | getByRole() | getByRole('button', { name: 'Submit' }) | |
| 2 | getByLabel() | getByLabel('Email') | |
| 3 | getByPlaceholder() | getByPlaceholder('Search...') | |
| 4 | getByTestId() | getByTestId('submit-btn') | |
| 5 | locator() | locator('.class') - last resort |
Common Traps
| Trap | Fix | |
|---|---|---|
| Element not found | Add await locator.waitFor() before interacting | |
| Flaky clicks | Use click({ force: true }) or wait for state: 'visible' | |
| Timeout in CI | Increase timeout, check viewport size matches local | |
| Auth lost between tests | Use storageState to persist cookies | |
| SPA never reaches networkidle | Wait for specific DOM element instead | |
| 403 Forbidden | Check if site blocks headless; try headless: false | |
| Blank page after load | Increase wait time or use waitUntil: 'networkidle' |
Handling Sessions
MCP Integration
For AI agents using Model Context Protocol:
MCP Tools Reference
| Tool | Description | |
|---|---|---|
browser_navigate | Navigate to URL | |
browser_click | Click element by selector | |
browser_type | Type text into input | |
browser_select_option | Select dropdown option | |
browser_get_text | Get text content | |
browser_evaluate | Execute JavaScript | |
browser_snapshot | Get accessible page snapshot | |
browser_close | Close browser context | |
browser_choose_file | Upload file | |
browser_press | Press keyboard key |
MCP Server Options
Installation
Related Skills
Install with clawhub install <slug> if user confirms:
puppeteer- Alternative browser automation (Chrome-focused)scrape- General web scraping patterns and strategiesweb- Web development fundamentals and HTTP handling
Feedback
- If useful:
clawhub star playwright - Stay updated:
clawhub sync
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/playwright/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pr-e/openclaw-master-skills/playwright)