UI Test for an ios-app, developed in Xcode 8 and swift 3.2.
I'm facing a problem to deal with drag and drop after upgrading Xcode version 8 to 9
I would like to drag an element [i.e. button]
and drop it to another element [i.e. on homepage]
.
For Xcode 8, I implemented it using below method:
let sourceElement = app.buttons["Video_Button"]
let destElement = app.scrollViews.scrollViews.images.element(boundBy: 0)
sourceElement.press(forDuration: 0.5, thenDragTo: destElement)
But the above code is not working in Xcode 9 and Swift 3.2.