mercredi 18 mars 2020

Xcode UI Test: No element found when using tap with multiple touches

I am trying to test a gesture using multiple touches doing multiple taps. When I execute the following test I get this error:

No element found at point {405, 5} while computing gesture coordinates, internal error possibly due to orientation or remote view hosting.

func testGesture() {

        app.tap(withNumberOfTaps: 3, numberOfTouches: 3)

        //...        

 }

I also tried to set orientation to both landscape and portrait but it did not change a thing.

I am using Xcode 11.3.1 and trying to run the test on real device: iPad (7th generation) - iOS 13.3.1

Any idea how to fix this?

Aucun commentaire:

Enregistrer un commentaire