You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Let --class-name / --type be the whole ui query, with no text selector #1095
--class-name and --type can only narrow a text match. You can't ask for "the element of class CalendarSurface" without knowing its name, and * matches nothing.
winapp ui search --class-name CalendarSurface -a <app>
-> ❌ A selector is required.
expected: the elements whose ClassName is CalendarSurface
Describe the solution you'd like
When --class-name or --type is given, accept a missing text selector on search, wait-for, get-property and the single-element verbs. Single-element verbs still require exactly one match and fail as ambiguous otherwise.
Additional context
The selector argument is currently required, and UiQueryOptions.ValidateWithOptionalSelector explicitly rejects filters without a selector.
Activity
uipress verbs, plus a horizontal wheel and a pinch angle #1084Let --type and --class-name be the whole `winapp ui` query (microsoft…