Skip to main content

tap

Function tap 

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

Perform a tap gesture on a device.

§Arguments

  • device_id - Device identifier (UDID for iOS, serial for Android, “local” for macOS)
  • x - X coordinate
  • y - Y coordinate
  • options - Gesture options including diff settings

§Errors

Returns an error if the tap fails or the device is not available.