XCUICoordinate
A location on screen relative to a UI element.
Declaration
@MainActor class XCUICoordinateOverview
Coordinates are dynamic, like the elements to which they refer, and may compute different screen locations at different times, or be invalid if the element they reference doesn’t exist.
Topics
Getting coordinate properties
Moving the pointer
Clicking
click()click(forDuration:thenDragTo:)click(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)doubleClick()rightClick()
Scrolling
Tapping and pressing
tap()doubleTap()press(forDuration:)press(forDuration:thenDragTo:)press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)
Performing gestures
swipeLeft()swipeLeft(velocity:)swipeRight()swipeRight(velocity:)swipeUp()swipeUp(velocity:)swipeDown()swipeDown(velocity:)