Skip to main content

tap

Function tap 

Source
pub async fn tap(host: &Host, udid: &str, x: u32, y: u32) -> Result<()>
Expand description

Perform a tap gesture on an iOS simulator at the specified coordinates.

Uses IDB (iOS Development Bridge) to send touch events to the simulator.

§Arguments

  • udid - The simulator’s unique device identifier
  • x - X coordinate within the simulator screen
  • y - Y coordinate within the simulator screen

§Errors

Returns an error if IDB is not installed or the tap fails.