← Back to Skills Marketplace
shenghoo123-png

Playwright Test Generator

by shenghoo123-png · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
149
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install playwright-test-generator
Description
AI-driven Playwright test code generator for QA engineers. Generates Page Object Models, standard test scripts, and data-driven tests from natural language d...
Usage Guidance
This skill appears to do what it says: generate Playwright tests by loading pages and rendering templates. Before installing or running it, consider: - Visiting a URL will launch a headless browser and execute that page's JavaScript; do NOT analyze sensitive internal pages, pages requiring credentials, or untrusted URLs you don't control, because page scripts may make network calls or expose data in the browsing context. - There is no install spec: to run the JS parts you must install dependencies (npm) and Playwright; Playwright typically downloads browser binaries which consume bandwidth/disk. Ensure you trust the npm packages in package.json and have appropriate environment isolation. - Generated files are written to disk at the specified output paths; avoid using untrusted save paths to prevent unintended file writes. If you need stricter controls, run the generator in a sandbox or CI environment with limited permissions. - If you want higher assurance, inspect the omitted/truncated files (src JS files and any runtime code) and run the test suite in an isolated environment first.
Capability Analysis
Type: OpenClaw Skill Name: playwright-test-generator Version: 1.1.0 The bundle is a legitimate and well-documented tool for generating Playwright test scripts (Python and JavaScript) from natural language descriptions, HTML snippets, or live URLs. It includes comprehensive logic for DOM analysis, locator extraction, and template-based code generation. While the tool performs high-risk operations such as launching a headless browser to navigate to user-provided URLs (in playwright_test_generator.py and src/generator.js) and writing generated code to the local filesystem (in generator.py and src/index.js), these actions are essential for its stated purpose. No evidence of malicious intent, data exfiltration, or unauthorized persistence was found.
Capability Tags
cryptocan-make-purchases
Capability Assessment
Purpose & Capability
The name/description (Playwright test generator) matches the included code and dependencies: Python + JS generator modules, templates, and package.json listing 'playwright', 'cheerio', and 'ejs'. Using Playwright to load pages, extract DOM, and render templates is coherent with the stated purpose.
Instruction Scope
SKILL.md and CLI instruct the agent to analyze URLs and HTML and to save generated code. The implementation uses Playwright to open pages (headless) and execute page JS to extract elements — this is expected for DOM analysis but means visiting a URL will execute remote JavaScript and load external resources (network requests, trackers, etc.). The instructions do not ask for unrelated system files or secrets, but users should avoid passing sensitive internal URLs or credentials because page loading may expose data to the browsing context.
Install Mechanism
No install spec is provided even though project files (package.json, package-lock.json, Python modules) are present. The JS/Python code depends on 'playwright' which typically downloads browser binaries at install/runtime; that behavior is expected but can be heavy. From a supply-chain perspective, dependencies come from npm registry (package-lock shows standard packages) — no suspicious download URLs were found in the provided files.
Credentials
The skill declares no required environment variables, credentials, or config paths. The source code does not request or embed API keys or other secrets. This aligns with the tool's purpose; there are no disproportionate credential requirements.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It writes generated test files to user-specified output paths (normal for a generator) but does not attempt to modify other skills or global agent configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install playwright-test-generator
  3. After installation, invoke the skill by name or use /playwright-test-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
v1.1.0: Enhanced test generation with improved locator strategies and additional framework support
v1.0.1
v1.0.1 introduces a new cross-platform Node.js-based implementation with expanded framework and input support. - Added full JavaScript implementation with CLI, core generator, parsers, and locator extractor modules. - Supports generating Playwright test code from natural language, URLs, and HTML, with output for Python (pytest-playwright) and JavaScript (Jest/native). - Now outputs Page Object Models, standard test scripts, data-driven tests, and robust locator files. - Enhanced documentation and usage instructions in SKILL.md, reflecting the new architecture and command/API usage. - Includes automated unit tests for the generator. - Project is now package-managed with package.json/package-lock.json.
v1.0.0
Initial release of Playwright Test Generator. - Generate Playwright tests from URLs, user stories, or descriptions - Supports Python (pytest-playwright) and JavaScript (@playwright/test) - Page Object Model (POM) code generation - Gherkin/BDD test format option - Batch processing from input files - Tiered feature access (Free, Pro, Team)
Metadata
Slug playwright-test-generator
Version 1.1.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Playwright Test Generator?

AI-driven Playwright test code generator for QA engineers. Generates Page Object Models, standard test scripts, and data-driven tests from natural language d... It is an AI Agent Skill for Claude Code / OpenClaw, with 149 downloads so far.

How do I install Playwright Test Generator?

Run "/install playwright-test-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Playwright Test Generator free?

Yes, Playwright Test Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Playwright Test Generator support?

Playwright Test Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Playwright Test Generator?

It is built and maintained by shenghoo123-png (@shenghoo123-png); the current version is v1.1.0.

💬 Comments