fix: make snapshot --raw use target app tree on physical iOS
Merged
TH
8mo ago+119+119+012345678901234567890123456789-73-73-01234567890123456789
Summary
Fix raw iOS snapshots on physical devices by switching snapshot --raw traversal from live XCUIElement queries to XCUIElementSnapshot.
snapshotRawnow usesqueryRoot.snapshot()and walkssnapshot.children, matching the reliable cross-process path used by fast snapshots.- Added geometry-based computed hittable for raw nodes (enabled, non-empty frame, center in viewport, not occluded by later siblings).
- Reused snapshot-based include filtering via
hittableOverrideand removed now-unused element-based raw helpers. - Touched-file count: 1 (
ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift). - Scope expanded beyond initial module: no.
Fixes #147
Validation
pnpm build:xcuitest