Open
Conversation
- Add --text option: find element by AXLabel/AXValue (case-insensitive partial match) via live UI tree query - Add --type/--index options: find element by type with optional 0-based index among matches - Both tap and fill now support 4 target modes: -x/-y, --ref, --text, --type (mutually exclusive via clap conflicts) - Fill --target for text-based element search, --type/--index for type - Add find_by_text() and find_by_type_index() to snapshot module - resolve_live_element() helper queries idb describe-all on the fly
Add era session connect/list/disconnect/disconnect-all commands. Sessions store UDID, device name, and auto-detected scale factor in ~/.era/sessions.json. Existing commands (tap, snapshot, fill, swipe, tap-region) gain --session option as alternative to --device. When neither is specified, the default session is used.
…tor-session # Conflicts: # src/cli/mod.rs # tests/regression.rs
Add wait module with Playwright-inspired auto-wait polling that repeatedly queries the UI tree until a matching element appears or timeout is reached. Integrates into CLI via --wait/--timeout flags on tap and fill commands for --text/--type selectors.
Add assertion.rs with Condition enum (Visible/Hidden/Enabled/Disabled/ TextEquals/TextContains/Count), Selector enum, and polling-based assert_condition() function. Add Assert CLI subcommand with shared SelectorArgs via #[command(flatten)]. Exit code 0 for pass, 1 for fail. Also fix Phase 4a integration issues: restore wait/timeout fields in Tap/Fill commands, fix tuple access in auto-wait handler, fix fill_element_with_wait (use wait_for_element + manual fill), fix wait.rs type error in find_by_type.
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.
Summary
era assertcommand for UI state verification with polling + timeout, exit code 0/1 for shell scriptingChanges
Phase 4a: Auto-wait (
wait.rs)wait_for_element(): Polls UI tree until target element is visible + enabled + frame-stable (2 consecutive polls match)tap_element_with_wait(): Pre-tap wait → tap → post-tap change detectionFramegainsPartialEqfor stability comparisonhandle_tapuses auto-wait for--text/--typeselectors; coordinate mode retains existingtap_with_retryPhase 4b: Assertion (
assertion.rs)Selectorenum:Text,Type(String, Option<u32>),Ref(u32)Conditionenum:Visible,Hidden,Enabled,Disabled,TextEquals,TextContains,Countassert_condition(): Polling loop (500ms interval, configurable timeout)era assertCLI with subcommands:visible,hidden,enabled,disabled,text,countSelectorArgswith#[command(flatten)]for reusable--text/--type/--index/--refoptionsUsage examples
Test plan