fix: make snapshot --raw use target app tree on physical iOS

Merged
TH
8mo ago
+119-73

Summary

Fix raw iOS snapshots on physical devices by switching snapshot --raw traversal from live XCUIElement queries to XCUIElementSnapshot.

  • snapshotRaw now uses queryRoot.snapshot() and walks snapshot.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 hittableOverride and 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