Instance Method

press(forDuration:)

Sends a long press gesture at the coordinate, holding for the specified duration.

Declaration

func press(forDuration duration: TimeInterval)

See Also

Tapping and Pressing

func tap()

Sends a tap event at the coordinate.

func doubleTap()

Sends a double tap event at the coordinate.

func press(forDuration: TimeInterval, thenDragTo: XCUICoordinate)

Initiates a press-and-hold gesture at the coordinate, then drags to another coordinate.