DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to check a screen flow by element ID or on-screen text with DSH Android

Tap buttons by resource-id or text, verify the next screen, and fall back to OCR when the UI tree is empty.

Short answer: Call android_ui_tree on the streamed device to list the text and resource-id of each node on the foreground screen; then call android_tap_element with resource_id or text, and set expect_text to a string that should appear on the next screen; if the tree is empty or the label is baked into an image, call android_tap_text with the query, or android_wait_for with mode appear. All steps.

Authorization notice. DSH Android is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA QA tester who needs to walk through a screen flow on a device and confirm each step with a screenshot.

The problemScripted UI tests break when coordinates shift, and manual checks are slow to repeat across builds.

The outcomeEach step is tapped by identity, the expected next text is confirmed, and the result is backed by a screenshot.

What you need first

  • A DeepSeek Harness (DSH) host, tested by the author with DSH 0.1.5-rc.1
  • adb available on the machine so the plugin can resolve it
  • A running Android emulator or a USB-connected Android phone
  • For builds: a Gradle project that has ./gradlew

Steps

  1. Call android_ui_tree on the streamed device to list the text and resource-id of each node on the foreground screen.
  2. Call android_tap_element with resource_id or text, and set expect_text to a string that should appear on the next screen.
  3. If the tree is empty or the label is baked into an image, call android_tap_text with the query, or android_wait_for with mode appear.
  4. Review the screenshot that comes back with each tap and mark the step as pass or fail.
  5. Repeat for the next screen in the flow until the check is complete.

Prompt for your agent

Using the dsh-android plugin, call android_ui_tree on the streamed device, then call android_tap_element on <element resource-id or text> with expect_text set to <text expected on the next screen>. Expected output: a tap result that reports whether the expected text appeared, plus a screenshot path. Verify the expect_text check passed before moving to the next step.

Caveat. Taps are sent to whatever is on the live device, so use a test device or emulator rather than a phone with personal data.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ZSeven-W/dsh-android and "Check a screen flow by element ID or on-screen text"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer