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é
test-fixing
Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.
comprehensive-review-full-review
"Use when working with comprehensive review full review"
e2e-testing-patterns
Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.