Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let app = XCUIApplication()
- let cell = app.cells.element(boundBy: 0) // first cell on the page
- let rightOffset = CGVector(dx: 0.95, dy: 0.5)
- let leftOffset = CGVector(dx: 0.05, dy: 0.5)
- let cellFarRightCoordinate = cell.coordinate(withNormalizedOffset: rightOffset)
- let cellFarLeftCoordinate = cell.coordinate(withNormalizedOffset: leftOffset)
- // drag from right to left to delete
- cellFarRightCoordinate.press(forDuration: 0.1, thenDragTo: cellFarLeftCoordinate)
Add Comment
Please, Sign In to add comment