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é
distributed-debugging-debug-trace
"You are a debugging expert specializing in setting up comprehensive debugging environments, distributed tracing, and diagnostic tools. Configure debugging workflows, implement tracing solutions, and establish troubleshooting practices for development and production environments."
tdd-workflows-tdd-cycle
"Use when working with tdd workflows tdd cycle"
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.