dsh-tool-app-verify
DiscoveredDSH Plugin: Browser & Electron UI Operations and Verification — Enabling Agents to Drive Applications and Assert Behaviors Like QA.
dsh-tool-app-verify
DSH 插件:Browser & Electron UI 操作与验证——让 Agent 像 QA 一样驱动应用并断言行为。
功能
Action 工具(操作应用):
app_launch— 启动浏览器或 Electron 应用app_click— 点击元素app_type— 输入文本app_navigate— 导航(goto/back/forward/reload)app_close— 关闭会话
Assert 工具(验证行为):
app_verify— 断言元素状态(存在/可见/文本/属性)app_screenshot— 截图(可保存为基线)app_screenshot_diff— 视觉回归:对比当前截图与基线,返回差异百分比和高亮图app_accessibility— 获取 accessibility tree 快照
安装
dsh plugin add dsh-tool-app-verify
配置
- id: app-verify
plugin: dsh-tool-app-verify
config:
mode: browser # browser | electron
headless: true
timeout: 30000
baselinePath: .app-verify/baselines
diffThreshold: 0.1 # pixelmatch 容差
viewport:
width: 1280
height: 720
使用示例
Browser 模式
User: 打开我们的登录页,验证登录按钮存在且可点击
Agent:
→ app_launch({ target: "http://localhost:3000/login" })
→ app_verify({ selector: "role:button[name=\"登录\"]", assertion: "visible" })
→ app_screenshot({ saveAs: "login-page" })
✓ 登录按钮存在且可见,已保存截图基线。
Electron 模式
User: 启动我们的桌面应用,检查主窗口标题
Agent:
→ app_launch({ target: "./dist/main.js", mode: "electron" })
→ app_verify({ selector: "role:heading", assertion: "text_contains", expected: "Dashboard" })
✓ 主窗口标题包含 "Dashboard"。
视觉回归测试
User: 对比当前首页和上次的基线截图
Agent:
→ app_launch({ target: "http://localhost:3000" })
→ app_screenshot_diff({ baseline: "homepage" })
结果:匹配度 97.3%,有差异区域已高亮显示。
选择器格式
| 格式 | 示例 | 说明 |
|---|---|---|
role: | role:button[name="Submit"] | Playwright role locator |
text: | text:Hello World | 文本匹配 |
testid: | testid:login-btn | data-testid 属性 |
// | //div[@class="main"] | XPath |
| 其他 | #id / .class / div > span | CSS 选择器 |
与 dsh-session-analyst 配合
- Agent 用本插件执行 UI 测试流程
- 测试完成后用
analyze_session审计会话效率 - 用
compare_sessions对比不同版本的测试表现
开发
npm install
npm test # 运行单元测试(选择器解析、图片对比)
npx playwright install chromium # 首次需安装浏览器
License
MIT
Comments
Loading…
Similar plugins
by kunjinkao-os
Android Mobile GUI Agent plugin for DeepSeek Harness with ADB control, iterative verification, approvals, and a Web mobile view
★ 12
MIT
JavaScript
Aug 20, 2026
dsh plugin --profile web add dsh-mobile-gui-agentby EChan684
把 agent 的网页验证请求路由进 DSH 窗口右侧栏的内嵌浏览器(dsh-better-sidebar),不再打开系统浏览器遮挡会话界面;自动加宽面板、只截页面区域、并在会话首轮开放工具
★ 0
MIT
JavaScript
Sep 3, 2026
dsh plugin --profile web add dsh-web-verify-panelby Knot-chord
DSH 插件:让多个自动化插件不抢同一窗口——同一目标一回合一个动手类,决策写入 JSONL 审计。
★ 0
MIT
JavaScript
Nov 15, 2026
dsh plugin --profile web add @local/dsh-capability-policyby bbaz123
DSH Verification Gate: a host-plane plugin that runs Change -> Memory -> Regression -> Assertion -> Review before an Agent turn is allowed to close, records confirmed findings in a task error ledger, forces an OpenViking retrieval before any repair, and hands the finalization back to the Agent's existing global rules
★ 0
Apache-2.0
JavaScript
Oct 22, 2026
dsh plugin --profile web add dsh-plugin-verificationby CaT-Hode
Windows desktop plugin for DeepSeek Harness — shared Web sessions and plugins, startup logs and update recovery. DSH 桌面插件:共用 Web 对话与插件。
★ 0
MIT
JavaScript
Oct 21, 2026
dsh plugin --profile web add dsh-appby cheng-wj
DSH plugin: restart / update / inspect the DeepSeek Harness desktop app from the model side (Windows)
★ 0
MIT
JavaScript
Oct 21, 2026
dsh plugin --profile web add dsh-app-control