DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-tool-app-verify

d

dsh-tool-app-verify

Discovered

DSH Plugin: Browser & Electron UI Operations and Verification — Enabling Agents to Drive Applications and Assert Behaviors Like QA.

Machine translated

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-btndata-testid 属性
////div[@class="main"]XPath
其他#id / .class / div > spanCSS 选择器

与 dsh-session-analyst 配合

  1. Agent 用本插件执行 UI 测试流程
  2. 测试完成后用 analyze_session 审计会话效率
  3. 用 compare_sessions 对比不同版本的测试表现

开发

npm install
npm test          # 运行单元测试(选择器解析、图片对比)
npx playwright install chromium  # 首次需安装浏览器

License

MIT

Comments

Loading…

Similar plugins

dsh-mobile-gui-agent

by kunjinkao-os

Android Mobile GUI Agent plugin for DeepSeek Harness with ADB control, iterative verification, approvals, and a Web mobile view

UI & ExperienceManifest valid

★ 12

MIT

JavaScript

Aug 20, 2026

dsh plugin --profile web add dsh-mobile-gui-agent

by EChan684

把 agent 的网页验证请求路由进 DSH 窗口右侧栏的内嵌浏览器(dsh-better-sidebar),不再打开系统浏览器遮挡会话界面;自动加宽面板、只截页面区域、并在会话首轮开放工具

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 3, 2026

dsh plugin --profile web add dsh-web-verify-panel

by Knot-chord

DSH 插件:让多个自动化插件不抢同一窗口——同一目标一回合一个动手类,决策写入 JSONL 审计。

Manifest valid

★ 0

MIT

JavaScript

Nov 15, 2026

dsh plugin --profile web add @local/dsh-capability-policy

by 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

Tools & CapabilitiesManifest valid

★ 0

Apache-2.0

JavaScript

Oct 22, 2026

dsh plugin --profile web add dsh-plugin-verification

by CaT-Hode

Windows desktop plugin for DeepSeek Harness — shared Web sessions and plugins, startup logs and update recovery. DSH 桌面插件:共用 Web 对话与插件。

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 0

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-app

by cheng-wj

DSH plugin: restart / update / inspect the DeepSeek Harness desktop app from the model side (Windows)

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-app-control