UIAutomation cannot drag scroll views when running in the iOS 7 Simulator

Originator:jeff
Number:rdar://15997005 Date Originated:02.05.2014
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 5.0.2 (5A3005), instruments, version 5.0.1 (51168).
Classification:Serious Bug Reproducible:Always
 
Summary:
Commands like `UIAElement.dragInsideWithOptions` have no effect when applied to a scroll view if the target is the iOS 7 Simulator.

Steps to Reproduce:
1. Execute `sh RunUIAutomationTests.sh` from within the root directory of the attached project.

Expected Results:
The scroll view (behind the visible UI elements) should be dragged as if the user were trying to scroll down.

Actual Results:
Nothing happens.

Version:
Xcode 5.1 (5B130a), instruments, version 5.1 (55044)

Notes:
The Instruments GUI can record the drag interaction, but UIAutomation cannot play it back, whether running in the GUI or from the command line. Some debugging reveals that the scroll view and indeed the scroll view's pan gesture recognizer does receive the synthetic touches created by UIAutomation, but the pan gesture recognizer never fires its action method.

This issue affects any attempt to drag a scroll view, including table views, swiping to delete table view cells (since as of iOS 7 they use an internal scroll view to implement this behavior), etc.

This was reproducible as of Xcode 5.1 Beta 4. I cannot test on Xcode 5.1 Beta 5 due to rdar://15994281 (http://openradar.appspot.com/radar?id=5064788107329536).

This is reproducible on both OS X 10.8.5 and 10.9 for whatever that's worth.

Configuration:


Attachment: http://cl.ly/0E370a3z3s0N

Comments

Still reproducible in Xcode 6, Beta 6 (6A280e)

When testing against iOS 8 Simulators. It's currently not possible to test against iOS 7.1 Simulators due to http://openradar.appspot.com/radar?id=5260422659702784.

Btw I can't modify this issue for some reason, but Apple has marked this as a duplicate of 14758292 (Open).

Still reproducible in Xcode 6, Beta 5 (6A279r)

When testing against iOS 8 Simulators. It's currently not possible to test against iOS 7.1 Simulators due to http://openradar.appspot.com/radar?id=5260422659702784.

Still reproducible in Xcode 5.1 (5B130a), instruments, version 5.1 (55044)

Updated project: http://cl.ly/0B2o2I1Y2F1V


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!