Instance Method

press(forDuration:thenDragTo:)

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

Declaration

func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)

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)

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