---
title: "tap(withNumberOfTaps:numberOfTouches:)"
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: "xcuiautomation/xcuielement/tap(withnumberoftaps:numberoftouches:)"
---

# tap(withNumberOfTaps:numberOfTouches:)

Sends one or more taps with one or more touch points.

## Declaration

```swift
func tap(withNumberOfTaps numberOfTaps: Int, numberOfTouches: Int)
```

## Parameters

- `numberOfTaps`: The number of taps.
- `numberOfTouches`: The number of touch points.

## See Also

### Tapping multiple times

- [twoFingerTap()](xcuiautomation/xcuielement/twofingertap().md)
