XCTest - UI Testing with XCUIElement using pinch gesture on custom coordinates?
问题 Let's say I've an app with an UI which looks kind of like the image below: Let's also say the blue view behaves like a map and the other colors are other interactable views. I need to do a XCTest where I need to "zoom out" on that blue view which I tired with pinchWithScale: [blueView pinchWithScale:0.5 velocity:-1]; Unfortunately that doesn't work because one of the red views or the violet view (which overlaps the blue view a tiny bit for shadow and corner reasons) gets triggered instead of