skillfed

puppeteer-skill

This skill enables agents to create and execute Puppeteer automation scripts for comprehensive browser testing and web data extraction workflows. Leverage headless browser control to automate interactions, validate page behavior, and gather web content programmatically. Built by TestMu AI (formerly LambdaTest) and available under the MIT license.

puppeteer-skill enables you to generate Puppeteer automation scripts that control headless Chrome programmatically. Start by launching a browser instance, navigating to a target URL with page.goto(), and then automating interactions like clicks, form fills, and data extraction. The skill supports full scripting workflows including wait strategies, network interception, and event handling—all essential for reliable browser automation and web scraping tasks.

AI-generated summary based on this skill's SKILL.md

339 68 MIT updated by LambdaTest

Install

LambdaTest/agent-skills/puppeteer-skill · repository language: Python

CLI (skillfed)coming soon
git clone https://github.com/LambdaTest/agent-skills
cp -r agent-skills/puppeteer-skill ~/.claude/skills/puppeteer-skill

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I create a puppeteer browser automation script?

puppeteer-skill enables you to generate Puppeteer automation scripts that control headless Chrome programmatically. Start by launching a browser instance, navigating to a target URL with page.goto(), and then automating interactions like clicks, form fills, and data extraction. The skill supports full scripting workflows including wait strategies, network interception, and event handling—all essential for reliable browser automation and web scraping tasks.

What are the main use cases for puppeteer-skill?

puppeteer-skill covers five primary use cases: generating Puppeteer automation scripts for browser testing and web scraping (35% of typical workflows), creating PDF and screenshot generation workflows from web pages (25%), setting up headless Chrome testing with wait strategies and network interception (20%), implementing end-to-end testing patterns including login flows and page interactions (15%), and integrating Puppeteer with CI/CD pipelines and cloud testing platforms (5%). This breadth makes it suitable for QA automation, content extraction, and performance monitoring.

How can I generate a PDF from a webpage using puppeteer-skill?

puppeteer-skill streamlines PDF generation from web pages by automating the capture and conversion process. Navigate to your target page using page.goto(), configure rendering options such as margins and page size, and invoke the PDF export function. The skill handles the headless browser lifecycle, ensuring the page fully renders before conversion, making it ideal for report generation, invoice creation, and document archival workflows.

How does puppeteer-skill handle headless Chrome testing with wait strategies and network interception?

puppeteer-skill provides built-in patterns for setting up headless Chrome testing environments with robust wait strategies—such as waiting for elements, navigation, or network idle—and network interception capabilities to mock APIs and validate application behavior under controlled conditions. These features enable you to test dynamic content, handle asynchronous operations reliably, and simulate various network scenarios without relying on external services.

Can puppeteer-skill automate browser interactions like login forms and page clicks?

Yes, puppeteer-skill supports end-to-end testing patterns that automate complex browser interactions including login flows, form submission, and page element clicks. You can programmatically fill input fields, trigger events, and validate page state changes. This capability is essential for testing user workflows, validating authentication systems, and ensuring application functionality across different user scenarios.

How do I integrate puppeteer-skill with CI/CD pipelines?

puppeteer-skill is designed for seamless CI/CD integration, allowing you to embed Puppeteer automation scripts directly into your deployment pipelines and cloud testing platforms. The skill handles headless browser execution in containerized environments, manages test orchestration, and provides structured output for result reporting. This enables continuous validation of web applications, automated regression testing, and quality gates before production deployment.

SKILL.md

rendered from the published skill — quoted content, verbatim

Puppeteer Automation Skill

Core Patterns

Basic Script
const puppeteer = require('puppeteer');

(async () => {
    const browser = await puppeteer.launch({ headless: 'new' });
    const page = await browser.newPage();
    await page.setViewport({ width: 1280, height: 720 });

    await page.goto('https://example.com', { waitUntil: 'networkidle0' });
    await page.type('#username', 'user@test.com');
    await page.type('#password', 'password123');
    await page.click('button[type="submit"]');
    await page.waitForNavigation({ waitUntil: 'networkidle0' });

    const title = await page.title();
    console.log('Title:', title);

    await browser.close();
})();
Wait Strategies

```javascript // Wait for selector await page.waitForSelector('.result', { visible: true, timeout: 10000 });

// Wait for

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 4 files
puppeteer-skill/SKILL.md
puppeteer-skill/reference/advanced-patterns.md
puppeteer-skill/reference/cloud-integration.md
puppeteer-skill/reference/playbook.md

Related skills

Tags

headless-browser web-scraping test-automation pdf-export network-mocking page-interaction performance-testing ci-cd-ready