Skip to main content

hitTest

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Ask the platform's own hit test, below accessibility, whether a touch at the point app_tap would use reaches the target — and if not, what it would reach. These call app_hit_test.

hitTest​

hitTest(target: string): Promise<Data>

Whether a tap on the target would reach it, by UIKit's hit test (iOS simulators).

Examples​

Ask where a tap on an element would really land​

const hit = await device.hitTest('testid=submit')
console.log(hit.reaches)