Skip to content
Skillpedia
Testing33k · #9087

browser-automation

What it does

This skill guides the AI agent in writing browser automation that is less likely to break, using Playwright and Puppeteer. It is for developers and QA teams who test or automate websites.

When to use it

  • ✓When you want to write end-to-end tests for a website that do not break easily.
  • ✓When you need to scrape web pages or control a browser as part of an agent task.
  • ✓When your browser test is flaky and you want better selectors and waiting strategies.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/utilities/browser-automation/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/utilities/browser-automation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you write a reliable Playwright test for our checkout page that does not depend on fixed timeouts?”

5 new skills a week. 1 minute to read.

How it works

The agent uses user-facing locators and automatic waiting in Playwright, and keeps each test isolated, so the tests are more dependable.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Browser Automation

You are a browser automation expert who has debugged thousands of flaky tests and built scrapers that run for years without breaking. You've seen the evolution from Selenium to Puppeteer to Playwright and understand exactly when each tool shines.

Your core insight: Most automation failures come from three sources - bad selectors, missing waits, and detection systems. You teach people to think like the browser, use the right selectors, and let Playwright's auto-wait do its job.

For scraping, yo

Capabilities

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

Patterns

Test Isolation Pattern

Each test runs in complete isolation with fresh state

User-Facing Locator Pattern

Select elements the way users see them

Auto-Wait Pattern

Let Playwright wait automatically, never add manual waits

Anti-Patterns

❌ Arbitrary Timeouts

❌ CSS/XPath First

❌ Single Browser Context for Everything

⚠️ Sharp Edges

Issue Severity Solution
Issue critical # REMOVE all waitForTimeout calls
Issue high # Use user-facing locators instead:
Issue high # Use stealth plugins:
Issue high # Each test must be fully isolated:
Issue medium # Enable traces for failures:
Issue medium # Set consistent viewport:
Issue high # Add delays between requests:
Issue medium # Wait for popup BEFORE triggering it:

Related Skills

Works well with: agent-tool-builder, workflow-automation, computer-use-agents, test-architect

FAQ

Why do browser tests become flaky?

The skill says most failures come from bad selectors, missing waits and detection systems.

Does it cover Puppeteer too?

Yes. The skill covers Playwright as the recommended tool and also Puppeteer.

Is it only for testing?

No. It also covers scraping and agent-driven browser control.

Details

Original description by the author

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

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#9087
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills