playwright

Automate end-to-end browser testing and web scraping with Playwright in Node.js environments.

Updated May 19, 2024
One-click install
npx skills add https://github.com/kettleofketchup/dotfiles --skill playwright-kettleofketchup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/kettleofketchup/dotfiles/tree/main/.claude/skills/playwright
Command: npx skills add https://github.com/kettleofketchup/dotfiles --skill playwright-kettleofketchup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Playwright simplifies the creation of reliable, automated browser tests and data extraction scripts, reducing manual QA effort and flaky results.

Core Features & Use Cases

  • E2E testing patterns and Playwright Test projects
  • Web scraping scripts and multi-context browser automation
  • CI integration (GitHub Actions, caching, and sharding) for scalable test runs

Quick Start

Install Playwright in your project, write a simple test file using Playwright Test, and run your tests with npx playwright test. For scraping tasks, add a page navigation and data extraction snippet and execute it in a script or test.

Frequently Asked Questions about playwright

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write E2E tests using Playwright?

You write E2E tests with Playwright by creating test files using the Playwright Test API and running them via `npx playwright test`. This skill provides patterns for structuring test suites and configuring browser contexts.

Can I use Playwright for web scraping and browser automation?

Yes, Playwright supports web scraping and browser automation by executing page navigation and data extraction snippets within scripts. This skill helps you manage multi-context browser automation for reliable data extraction.

How do I integrate Playwright tests with GitHub Actions CI?

Integrate Playwright with GitHub Actions by configuring CI workflows with caching and sharding for scalable test runs. This skill details setting up GitHub Actions to parallelize test execution and optimize your CI pipeline.

What do I need to run Playwright test suites in a Node.js environment?

Running Playwright test suites requires a Node.js environment and knowledge of TypeScript or JavaScript. You must understand Playwright APIs like `playwright.config.ts` to configure projects and implement test suites.

How do I parallelize test execution in Playwright?

Parallelize Playwright test execution by configuring test projects and integrating CI sharding. This skill covers using GitHub Actions to shard test runs across multiple machines for scalable and faster execution.