Playwright Pro for Openclaw

A production-grade testing toolkit for AI coding agents to generate, fix, and manage resilient Playwright test suites.

alirezarezvani
v2.1.3
Mar 11, 2026
0
590
1

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cs-pw

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cs-pw using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Playwright Pro?

Playwright Pro is a comprehensive suite designed to bring high-level automation and reliability to end-to-end testing within AI-driven development environments. By leveraging this set of Openclaw Skills, developers can move beyond basic scripting to implement robust, web-first testing strategies that significantly reduce technical debt and maintenance overhead. It focuses on modern testing standards, emphasizing resilient locators and automated diagnostic capabilities.

This toolkit provides a structured approach to quality assurance, offering everything from project initialization to advanced cross-browser reporting. It is specifically built to handle the complexities of modern web applications, ensuring that tests are not only easy to generate but also stable and maintainable across various CI/CD pipelines.

Playwright Pro Use Cases

  • Rapidly scaffolding new Playwright projects with optimized configurations and CI integration.
  • Generating end-to-end test scripts directly from user stories, URLs, or React/Vue components.
  • Refactoring legacy test suites by migrating from Cypress or Selenium to Playwright with high parity.
  • Eliminating flaky test failures through automated diagnosis and repair of non-deterministic assertions.
  • Integrating automated test results with enterprise management tools like TestRail and cloud grids like BrowserStack.

How Playwright Pro Works

  1. Initialize the environment using the /pw:init command to detect your framework and scaffold the base configuration.
  2. Generate functional test specs using /pw:generate based on your specific user requirements or component logic.
  3. Run /pw:review to audit the generated code for locator anti-patterns and to ensure adherence to web-first assertion standards.
  4. Deploy tests in your CI/CD pipeline and use /pw:fix to automatically diagnose and repair any tests that fail or exhibit flakiness.
  5. Synchronize findings and coverage reports with external platforms using the built-in MCP server integrations.

Playwright Pro Setup

To get started with these Openclaw Skills, follow these installation steps:

# Initialize Playwright in your current project
/pw:init

# (Optional) Set up TestRail integration
export TESTRAIL_URL="https://your-instance.testrail.io"
export TESTRAIL_USER="[email protected]"
export TESTRAIL_API_KEY="your-api-key"

# (Optional) Set up BrowserStack integration
export BROWSERSTACK_USERNAME="your-username"
export BROWSERSTACK_ACCESS_KEY="your-access-key"

Playwright Pro Data Schema & Taxonomy

The toolkit organizes its operations through a structured set of templates and reference materials:

Component Contents
Test Templates 55+ templates covering Auth, CRUD, Search, Checkout, and API testing.
Reference Docs Detailed guides on Golden Rules, Locators, Assertions, and Fixtures.
MCP Servers TypeScript-based connectors for TestRail and BrowserStack APIs.
Diagnostic Data Analysis logs identifying anti-patterns like hardcoded timeouts or brittle CSS selectors.

Playwright Pro Advanced Features

  • Deployment of three specialized AI agents: test-architect, test-debugger, and migration-planner for expert-level guidance.
  • Access to 55 production-ready test templates including advanced scenarios like accessibility and dashboard onboarding.
  • Automated locator priority engine that favors user-centric attributes like getByRole over fragile CSS/XPath selectors.
  • Smart hooks that automatically validate test quality and project context within the Openclaw Skills ecosystem.
  • Detailed migration mapping tables to ensure a seamless transition from Selenium or Cypress suites.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*