← 返回 Skills 市场
shenghoo123-png

Playwright Test Generator

作者 shenghoo123-png · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
149
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install 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...
安全使用建议
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.
功能分析
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.
能力标签
cryptocan-make-purchases
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install playwright-test-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /playwright-test-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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)
元数据
Slug playwright-test-generator
版本 1.1.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 149 次。

如何安装 Playwright Test Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install playwright-test-generator」即可一键安装,无需额外配置。

Playwright Test Generator 是免费的吗?

是的,Playwright Test Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Playwright Test Generator 支持哪些平台?

Playwright Test Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Playwright Test Generator?

由 shenghoo123-png(@shenghoo123-png)开发并维护,当前版本 v1.1.0。

💬 留言讨论