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
Implement the complete trace module for recording automation sessions: - trace/recorder.rs: TraceData/TraceStep types, start/stop/record_step with file-based active trace state (~/.era/active-trace.json) - trace/store.rs: save/load/list/delete traces in ~/.era/traces/ - trace/reporter.rs: single-file HTML report with dark theme, embedded CSS/JS, base64 screenshot encoding, step timeline with expand/collapse - CLI: `era trace start|stop|show|list` subcommands - 7 new regression tests for trace CLI argument parsing - 28 new unit tests across recorder, store, and reporter modules
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 trace start/stopcaptures each operation with timestamps, inputs/outputs, and optional screenshots~/.era/traces/{trace_id}/with JSON data + screenshot filesChanges
New
src/trace/modulerecorder.rs:TraceData/TraceSteptypes, start/stop/record_step, file-based active trace state (~/.era/active-trace.json)store.rs: save/load/list/delete operations on~/.era/traces/reporter.rs: Single-file HTML generation (dark theme, CSS/JS embedded, base64 screenshots, timeline expand/collapse)mod.rs: Module registrationCLI commands
era trace start --name "login-flow"— Start recordingera trace stop— Stop recording + auto-generate HTML reportera trace show [--format html|json]— View trace (opens browser for HTML)era trace list— List all recorded tracesUsage example
Test plan