src/driver.ts clickNode: when the exact-XPath click throws (e.g. stale @value predicate), the fallback $('~name') resolves the FIRST element with that accessibility id and returns true, so a locator like getByText('Save').nth(1) or .near(...) gets the wrong instance clicked and the coordinate fallback never runs. Suggested: skip the ~name fallback when the locator carried an index/proximity (needs plumbing), or drop the fallback and return false so the coordinate tap (which honours the resolved node) runs. Found during adversarial review (2026-07-02).
src/driver.ts clickNode: when the exact-XPath click throws (e.g. stale @value predicate), the fallback $('~name') resolves the FIRST element with that accessibility id and returns true, so a locator like getByText('Save').nth(1) or .near(...) gets the wrong instance clicked and the coordinate fallback never runs. Suggested: skip the ~name fallback when the locator carried an index/proximity (needs plumbing), or drop the fallback and return false so the coordinate tap (which honours the resolved node) runs. Found during adversarial review (2026-07-02).