Contents

click(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)

Clicks and holds for a duration, drags at a velocity, and holds over the other coordinate for a duration, all of which you specify.

Declaration

func click(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate, withVelocity velocity: XCUIGestureVelocity, thenHoldForDuration holdDuration: TimeInterval)

Parameters

  • duration:

    The duration of the initial click and hold.

  • otherCoordinate:

    The coordinate over which to finish the drag gesture.

  • velocity:

    The speed at which to move from the initial click position to the other coordinate, expressed in pixels per second.

  • holdDuration:

    The duration for which to hold over the other coordinate after dragging.

See Also

Clicking