go-playwright
Tests & QualitéExpert capability for robust, stealthy, and efficient browser automation using Playwright Go.
Documentation
Playwright Go Automation Expert
Overview
This skill provides a comprehensive framework for writing high-performance, production-grade browser automation scripts using github.com/playwright-community/playwright-go. It enforces architectural best practices (contexts over instances), robust error handling, structured logging (Zap), and advanced human-emulation techniques to bypass anti-bot systems.
When to Use This Skill
Safety & Risk
Risk Level: 🔵 Safe
defer to prevent memory leaks.Limitations
go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps).Strategic Implementation Guidelines
1. Architecture: Contexts vs. Browsers
CRITICAL: Never launch a new Browser instance for every task.
Browser once (singleton). Create a new BrowserContext for each distinct session or task.2. Logging & Observability
go.uber.org/zap exclusively.fmt.Println.zap.NewDevelopment() (Console friendly)zap.NewProduction() (JSON structured)logger.Info("clicking button", zap.String("selector", sel))).3. Error Handling & Stability
defer to close Pages, Contexts, and Browsers.playwright.PageClickOptions{Timeout: playwright.Float(5000)}).4. Stealth & Human-Like Behavior
To bypass anti-bot systems (Cloudflare, Akamai), the generated code must imitate human physiology:
Fill(). Use Type() with random delays between keystrokes (50ms–200ms).5. Documentation Usage
Resources
resources/implementation-playbook.md for detailed code examples and implementation patterns.Summary Checklist for Agent
Headless=false, SlowMo=100+.NewContext, apply new Proxy, rotate User-Agent.SafeAction with Zap logging.HumanType, BezierMouse, and Stealth Scripts.Compétences similaires
Explorez d'autres agents de la catégorie Tests & Qualité
browser-automation
"Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns. This skill covers Playwright (recommended) and Puppeteer, with patterns for testing, scraping, and agentic browser control. Key insight: Playwright won the framework war. Unless you need Puppeteer's stealth ecosystem or are Chrome-only, Playwright is the better choice in 202"
ab-test-setup
Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness.
playwright-skill
Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.