Repository navigation
feat(skills): uno-testing asserts with uno_app_find_elements after an action, screenshot only for the eye - #185
Merged
Conversation
rajamatt
approved these changes
Oct 9, 2026
kazo0
force-pushed
the
dev/steve/uno-dev-find-elements
branch
from
October 12, 2026 11:20
d5eac40 to
1a901ad
Compare
… action, screenshot only for the eye
The check after an action becomes one find_elements call with waitForMs on the element whose state should
have changed, read from its {state} group, instead of a screenshot or a re-snapshot. Tool reference, steps,
patterns and rules updated; the uno-dev agent carries the rule. Needs the find_elements build of
Uno.UI.App.Mcp (unoplatform/uno.app-mcp#185, servicing branch dev/sb/find-elements-1.4).
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL
kazo0
force-pushed
the
dev/steve/uno-dev-find-elements
branch
from
October 12, 2026 11:54
1a901ad to
995cb4a
Compare
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #184. Companion to unoplatform/uno.app-mcp#185 (
uno_app_find_elements, servicing branchdev/sb/find-elements-1.4).What
uno_app_find_elements(selector, waitForMs)on the element whose state should have changed, read from its{state}group (disabled,checked,selected,expanded,value=,items=,selectedIndex=,!hidden); zero matches asserts absence. Step 7 reads state from that group and keeps the DataContext for values it does not carry. New rule "Act, then find; screenshot only for the eye". The tool reference documents the parameters, the result shape and the three calls that replace the snapshot-and-read and screenshot-and-look loops; patterns and best practices follow.skills/copies updated.Why
In the 2026-10-08 FieldCheck sessions the Uno agent took 47 to 51 App MCP screenshots per session, 33 of them immediately after an element action with nothing in between: click, screenshot, look. Each costs an image in context and answers less than one
find_elementsline. The screenshots that remain are the visual comparisons against the reference and the deliverables.Verification
skill-ab FieldCheck run
fieldcheck-20261009-010927(unoplatform/private#1188): this branch at d5eac40 with a local pack ofdev/sb/find-elements-1.4(1.4.0-local.2) installed as the Sdk's pin, two Uno sessions against two Flutter sessions, every harness check passing. Compared with the last comparable Uno session (fieldcheck-20261008-184637A1, #184 without this branch: 117 images read into context, 51 App MCP screenshots, 5 snapshots, $31.94, 61 min):uno_app_find_elementscallsThe agent asserted with
find_elementsandwaitForMsas the skill says, took the one baseline snapshot, and took screenshots for the visual checks, the deliverables and, in A1, a seven-capture smoke of the trimmed Android Release build. What is left on Android is not the skill: on the API 36 emulatoruno_app_get_screenshotfails or returns blank after a navigation,uno_app_pointer_clicktakes physical pixels while the reported bounds are logical, and the connection drops behind the system photo picker, so the agent captured and tapped through adb there (feedback for uno.app-mcp). Flutter in the same run: $11.65 / 35 min and $24.07 / 39 min.🤖 Generated with Claude Code
https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL