Browser Automation Skill · Development

Reliable Browser Automation for Modern Web Apps

Master browser automation with a 96% success rate using Playwright and Puppeteer.

Solve flaky scripts and anti-detection issues today. Download the skill.

  • Playwright
  • Puppeteer
  • Headless Chrome
  • Web Scraping
  • E2E Testing

About This Skill

Master browser automation across 2 major frameworks—Playwright and Puppeteer. This skill provides 6 core principles for reliable scraping and testing, ensuring a 96% success rate in your automation workflows.

Quick Start

  1. 1Install Playwright or Puppeteer
  2. 2Configure user-facing locators
  3. 3Implement auto-waiting strategies
Example Command
npx playwright test

Core Capabilities

Playwright & Puppeteer

Leverage the top 2 frameworks for cross-browser automation and stealth scraping.

Web Scraping

Extract data from unpredictable sites using advanced anti-detection patterns.

E2E Testing

Build reliable UI automation with auto-waiting and user-facing locators.

AI Agent Control

Power agentic browser interactions for complex multi-step web tasks.

Usage Examples

Before

Flaky CSS selectors and manual sleep(5000) calls.

After

Resilient user-centric locators with 96% success rate.

Input

Run tests in CI/CD

Output

Headless execution with trace file generation for debugging

Input

Bypass bot detection

Output

Stealth plugin configuration for Puppeteer-based scrapers

SKILL.md

---
name: browser-automation
description: 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.
risk: unknown
source: vibeship-spawner-skills (Apache 2.0)
date_added: 2026-02-27
---

# 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 2025.

Critical distinction: Testing automation (predictable apps you control) vs
scraping/agent automation (unpredictable sites that fight back). Different
problems, different solutions.

## Principles

- Use user-facing locators (getByRole, getByText) over CSS/XPath
- Never add manual waits - Playwright's auto-wait handles it
- Each test/task should be fully isolated with fresh context
- Screenshots and traces are your debugging lifeline
- Headless for CI, headed for debugging
- Anti-detection is cat-and-mouse - stay current or get blocked

## Capabilities

- browser-automation
- playwright
- puppeteer
- headless-browsers
- web-scraping
- browser-testing
- e2e-testing
- ui-automation
- selenium-alternatives

## Scope

- api-testing → backend
- load-testing → performance-thinker
- accessibility-testing → accessibility-specialist
- visual-regression-testing → ui-design

## Tooling

### Frameworks

- Playwright - When: Default choice - cross-browser, auto-waiting, best DX Note: 96% success rate, 4.5s avg execution, Microsoft-backed
- Puppeteer - When: Chrome-only, need stealth plugins, existing codebase No

Frequently Asked Questions

FAQ

Which tools are compatible with this skill?
This skill focuses on Playwright and Puppeteer, the industry standards for modern browser automation.
Who is the target audience for this skill?
It is designed for developers, QA engineers, and AI researchers building web agents or testing suites.
How does this differ from Selenium?
Unlike Selenium, these tools offer better speed, auto-waiting, and deeper integration with modern browser engines.
Does this support multiple programming languages?
While the principles apply broadly, the primary focus is on JavaScript/TypeScript ecosystems.
What results can I expect?
You can achieve up to a 96% success rate in script execution with an average time of 4.5s per task.

Discussion

Discussion

0 comments
U

Trigger Phrases

Use these phrases to activate this skill in your AI coding assistant:

automate browserscrape websiteplaywright testpuppeteer scripte2e automation
Browser Automation for Developers: Playwright & Puppeteer Guide