go-playwright
Write browser automation with Playwright Go
This skill enables Claude to write production-grade browser automation scripts using Playwright Go with proper architecture, logging, and human-emulation patterns for testing and web scraping.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans ParamĂštres â CapacitĂ©s â Skills â Importer un skill
Activez et commencez Ă utiliser
Tester
Utilisation de "go-playwright". Write a script to scrape product titles from an e-commerce site
Résultat attendu:
A Go script that launches Chromium, navigates to the product page, extracts titles using CSS selectors, and logs results with Zap JSON logging.
Utilisation de "go-playwright". Automate login and extract dashboard data
Résultat attendu:
A script that creates an isolated browser context, performs login with human-type input, extracts data from the authenticated dashboard, and handles errors gracefully.
Audit de sécurité
SûrThis skill provides legitimate browser automation using Playwright Go. All static findings are false positives: markdown code examples flagged as shell commands, documentation URLs flagged as network risks, and session/cookie management misinterpreted as credential access. No malicious intent detected. The skill is appropriate for web testing and automation use cases.
Score de qualité
Ce que vous pouvez construire
Automated web testing
Write end-to-end tests for web applications using real browsers to verify complex user interactions and dynamic content.
Web scraping with anti-bot bypass
Extract data from websites that use Cloudflare or similar protection by implementing human-emulation techniques.
Browser-based workflow automation
Automate repetitive browser tasks like form submissions, data entry, or report generation from web dashboards.
Essayez ces prompts
Write a Go script using Playwright to open a browser, navigate to [URL], and print the page title.
Create a Playwright Go script that logs into [URL] with credentials, saves the session cookies to a file, and loads them on subsequent runs.
Write a script that fills out a form on [URL] with human-like typing delays, random mouse movements, and viewport randomization to avoid detection.
Create a complete Playwright Go test suite for [website] that includes Zap structured logging, proper error handling with panic recovery, and context isolation for each test.
Bonnes pratiques
- Always use browser contexts over launching new browser instances for better performance and isolation
- Implement proper defer statements to close pages, contexts, and browsers to prevent resource leaks
- Use Zap structured logging instead of fmt.Println for production debugging and traceability
Ăviter
- Avoid using Fill() for input - use Type() with random delays to simulate human typing
- Do not use default timeouts - always set explicit timeouts for actions
- Avoid launching a new browser for each task - reuse the browser instance with new contexts