Instance Method

pressForDuration:thenDragToCoordinate:

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

Declaration

- (void)pressForDuration:(NSTimeInterval)duration thenDragToCoordinate:(XCUICoordinate *)otherCoordinate;

See Also

Tapping and Pressing

- tap

Sends a tap event at the coordinate.

- doubleTap

Sends a double tap event at the coordinate.

- pressForDuration:

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