playwright-web-test

使用 Playwright 对本地网页、静态 HTML 或在线页面执行自动化测试、元素发现、控制台日志采集与截图。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "playwright-web-test" with this command: npx skills add carpedx/playwright-web-test

Playwright Web Test

这是一个面向 ClawHub / OpenClaw 的网页自动化技能,适合以下场景:

  • 打开网页并截图
  • 自动发现按钮、链接、输入框等元素
  • 采集浏览器 console 日志
  • 测试本地静态 HTML 文件
  • 在启动本地服务后执行自动化脚本

推荐触发方式

你可以直接对 agent 说:

  • 打开 http://localhost:5173 并截图
  • 分析这个页面上有哪些按钮和输入框:http://localhost:3000
  • 访问 file:///tmp/demo.html,点击按钮后截图
  • 采集 http://localhost:5173 的 console 日志

目录说明

  • agents/main/agent.yaml:技能入口
  • scripts/run_task.py:统一执行入口
  • scripts/with_server.py:先启动服务再执行自动化
  • examples/:示例脚本

使用建议

  1. 动态页面先等待 networkidle
  2. 优先先做元素发现,再编写精确操作
  3. 需要启动本地服务时,优先使用 with_server.py
  4. 截图输出会使用 MEDIA: 规范,便于网关直接展示

注意事项

  • 需要本地 Python 环境可用
  • 首次运行前需安装 Playwright: python3 -m pip install playwright && python3 -m playwright install chromium
  • 如果目标页面依赖本地服务,请确认端口可访问

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Virtual Desktop Pro v4 -- Universal Browser Execution

Persistent authenticated browser for OpenClaw via kasmweb/chrome Docker sidecar. Principal logs in once via noVNC — sessions saved permanently in Docker volu...

Registry SourceRecently Updated
2530Profile unavailable
Automation

AutoClaw Browser Automation

Complete browser automation skill with MCP protocol support and Chrome extension

Registry SourceRecently Updated
1K0Profile unavailable
Automation

Linux Desktop Control

Linux desktop automation and control. Use when: (1) taking screenshots of the screen or windows, (2) controlling mouse and keyboard, (3) managing windows, (4...

Registry SourceRecently Updated
1.6K0Profile unavailable
Automation

Browser Use - 网页自动化

通过 nodriver 驱动浏览器,支持信息检索、网页抓取、表单交互等;**作为搜索工具的补充**——内置搜索无结果、摘要不足或需登录/站内检索时再启用;适用于非 WPS 链接访问、落地页导航、Web 应用交互,以及股票/金价/期货/天气等强事实信息。

Registry SourceRecently Updated
600Profile unavailable
playwright-web-test | V50.AI