Post

Replies

Boosts

Views

Activity

Comment on XCUITest: `scroll(byDeltaX:deltaY:)` API is not available for iPhones.
I'm working on UI automation tests using XCUITest for an iOS application (iPhone). I understand the scroll(byDeltaX:deltaY:) method is not supported on iPhone, so I'm using the coordinate-based drag method as an alternative. Specifically, I am using .press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:) There's a consistent error of several pixels, making the scroll amount unpredictable for precise test assertions. Are there any alternative methods or best practices within XCUITest?
1d