playwright-browser-automation

Capture network traffic from Playwright sessions and parameterize it into JMeter JMX scripts.

4|1|Updated Aug 22, 2025
One-click install
npx skills add https://github.com/canyonlabz/mcp-perf-suite --skill playwright-browser-automation-canyonlabz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-browser-automation
Source: https://github.com/canyonlabz/mcp-perf-suite/tree/main/.cursor/skills/playwright-browser-automation
Command: npx skills add https://github.com/canyonlabz/mcp-perf-suite --skill playwright-browser-automation-canyonlabz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates converting live Playwright browser sessions into repeatable performance test scripts by capturing network traffic and producing a parameterized JMeter JMX.

Core Features & Use Cases

  • Archive old Playwright traces to prevent data contamination and ensure clean runs.
  • Discover, load, and select test specs (Markdown) and parse them into executable steps.
  • Execute browser steps via Playwright tools, apply configurable think time, and handle dialogs robustly.
  • Capture network traffic from the browser session and generate a JMeter script with correlations.
  • Output a ready-to-run JMX script along with artifacts for validation and HITL workflows.

Quick Start

Run a browser automation session to capture traffic and generate a parameterized JMX script.

Frequently Asked Questions about playwright-browser-automation

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

FAQPage Schema
How do I convert Playwright traces into a JMeter load testing script?

You can convert Playwright traces into a JMeter script by capturing live browser network traffic and parameterizing it into a JMX file. This Skill automates the process by parsing a Markdown test spec, executing browser steps via Playwright, and emitting a ready-to-run JMeter script with correlations.

What is browser traffic correlation in JMeter and how does it work with Playwright?

Traffic correlation in JMeter links dynamic network values captured during a Playwright session to test variables. This Skill analyzes the captured network traffic, applies correlation naming, and generates a parameterized JMX script to ensure repeatable load tests.

Can I use a Markdown test spec to configure JMeter think time and browser steps?

Yes, you can use a Markdown test spec to configure JMeter think time and browser steps. The Skill parses the Markdown file into executable steps, executes them through Playwright, and applies configurable think time during network traffic capture for the JMX script.

Do I need Playwright traces to generate a parameterized JMeter JMX file?

Yes, you need Playwright traces to generate a parameterized JMeter JMX file. The Skill requires Playwright traces as input to bridge live browser interactions with automated JMeter script generation, capturing the necessary network traffic for correlation.

What is the best way to parameterize network traffic from a browser session for load testing?

The best way to parameterize network traffic from a browser session for load testing is to capture live interactions and apply automated correlation naming. This Skill executes Playwright browser steps, captures the traffic, and outputs a parameterized JMX script for repeatable tests.

How do I prevent data contamination when generating JMeter scripts from old browser traces?

To prevent data contamination when generating JMeter scripts from old browser traces, you must archive the old Playwright traces before capturing new network traffic. This Skill includes functionality to archive old traces, ensuring clean runs and accurate parameterized JMX output.