tap

suspend fun tap(timeout: Duration? = null)(source)

Click at the centre of the one matching node's visible bounds.


suspend fun tap(count: Int, interval: Duration = 100.milliseconds, timeout: Duration? = null)(source)

count taps (1..100) at the initially resolved visible centre, with interval between release and the next press (40..1000 ms; default 100 ms). The sequence, including each 50 ms press, must fit in 30 seconds and the remaining timeout. Resolves once, never retries; does not promise app-specific multi-click recognition. Single tap is unchanged.