Since iOS 11 XCUITest is not able anymore to find hitpoints for UIImages anymore, which results in not being able to tap an image or drag a touch to it by using press(forDuration:thenDragTo:)
.
There is a workaround for tapping an image which works (using tap
on coordinate(withNormalizedOffset: CGVector(dx: 0, dy: 0))
). The same approach does not work for the thenDragTo
method, because it expects a XCUIElement.
Does anyone have an idea how to get the thenDragTo method to work (preferably without having to edit production code)?
Thanks in advance