cn-webapp-testing
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cn-webapp-testing" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c424131612c655386359b1bab2acdf1faace4291ce3a59b99decfdd65fb0f2dc. Verify the upstream source and version against https://skillhub.cn/skills/org-02qudk26/cn-webapp-testing before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Local webapp testing toolkit: a toolkit for interacting with and testing local web applications using Playwright.
Introduction source: third_party · org-02qudk26 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "webapp-testing"
description: "使用 Playwright 与本地 Web 应用程序交互并测试本地 Web 应用程序的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器屏幕截图以及查看浏览器日志。"
license: "\"Complete terms in LICENSE.txt\""
displayName: "网络应用程序测试"
summary: "使用 Playwright 与本地 Web 应用程序交互并测试本地 Web 应用程序的工具包"
version: 1.0.0
tags: [浏览器, 工具包, 相互作用, 当地的, UI]Web应用测试
要测试本地 Web 应用程序,请编写本机 Python Playwright 脚本。
可用的帮助脚本:
scripts/with_server.py- 管理服务器生命周期(支持多个服务器)
始终首先使用 --help 运行脚本以查看用法。在您首先尝试运行脚本并发现绝对需要定制解决方案之前,请勿阅读源代码。这些脚本可能非常大,从而污染您的上下文窗口。它们的存在是为了作为黑盒脚本直接调用,而不是摄入到上下文窗口中。
决策树:选择你的方法
块0块
示例:使用 with_server.py
要启动服务器,请先运行 --help,然后使用帮助程序:
单服务器: 块1块
多个服务器(例如后端+前端): 块2块
要创建自动化脚本,请仅包含 Playwright 逻辑(服务器自动管理): 块3块
侦察然后行动模式
-
检查渲染的 DOM:
page.screenshot(path='/tmp/inspect.png', full_page=True) content = page.content() page.locator('button').all() -
从检查结果中识别选择器
-
使用发现的选择器执行操作
常见陷阱
❌ 在动态应用程序上等待 networkidle 之前不要检查 DOM
✅ 请在检查前等待page.wait_for_load_state('networkidle')
最佳实践
- 使用捆绑脚本作为黑匣子 - 要完成任务,请考虑
scripts/中可用的脚本之一是否可以提供帮助。这些脚本可以可靠地处理常见、复杂的工作流程,而不会扰乱上下文窗口。使用--help查看用法,然后直接调用。 - 使用
sync_playwright()进行同步脚本 - 完成后始终关闭浏览器
- 使用描述性选择器:
text=、role=、CSS 选择器或 ID - 添加适当的等待:
page.wait_for_selector()或page.wait_for_timeout()
参考文件
- 示例/ - 显示常见模式的示例:
element_discovery.py- 发现页面上的按钮、链接和输入static_html_automation.py- 使用文件:// URLs 本地 HTMLconsole_logging.py- 在自动化过程中捕获控制台日志
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供使用 Playwright 与本地 Web 应用程序交互和测试的工具包,支持前端功能验证、UI 调试、截图和日志捕获
- 面向开发者测试本地 Web 应用,属于明确场景的通用工具,具有广泛受众的实用能力
Highlights
- description 明确描述了使用 Playwright 与本地 Web 应用程序交互并测试本地 Web 应用程序的工具包
- 触发词精准完整,覆盖多种变体,边界清晰
Highlights
- Skill 文档结构清晰,包含决策树、示例、侦察然后行动模式、常见陷阱、最佳实践和参考文件
- 有端到端示例,frontmatter 完整,单文件未超过 500 行
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 scripts/with_server.py 文件,但该文件未传入 ZIP 包
Recommendation: 请确保所有被引用的脚本文件(如 scripts/with_server.py)都包含在 Skill ZIP 包中,以避免用户执行时找不到文件
Highlights
- 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Screenshots or screen capture
Capture only a selected window or region. Avoid secrets and private records and review captures before sharing.
Mentioned in main document · lines 40
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.