Since I use Xcode 5 and the new iOS 7 simulator to run UIAutomation tests with Instruments, dragInsideWithOptions
and dragFromToForDuration
functions have simply no effect. (The same tests worked fine with iOS 6.1 simulator.) Is this a known bug, or the usability of this functions has changed? Is there anyone who could use this function with iOS 7 simulator on iPad?

- 4,502
- 2
- 47
- 63

- 718
- 5
- 10
-
Lock screen doesn't work either, as it also uses the dragging function. – Display Name Oct 09 '13 at 12:54
-
Is this fixed in XCode 5.1? – Display Name Mar 11 '14 at 13:48
-
Couldn't get it to work on a device (iOS 7.1.2) either. – Snowcrash Mar 07 '15 at 10:29
-
Worked fine on an iOS8 device. – Snowcrash Mar 07 '15 at 10:35
5 Answers
Same issue here. In addition to dragInsideWithOptions not working, dragFromToForDuration and flickFromTo aren't working either in Xcode 5 with iOS 7. I have been searching and waiting for a solution as well. Until then, swiping won't be possible.

- 41
- 1
This is a bit old but it seems that dragInsideWithOptions
is still not working.
For a UIScrollView
these methods can be used:
scrollUp
scrollDown
scrollLeft
scrollRight
Ex:
UIATarget.localTarget().frontMostApp().mainWindow().scrollViews()[0].scrollRight();
Hope it helps!

- 300
- 2
- 11
Another workaround: If you have a page control associated with your scroll view, use:
pageIndicator = UIATarget.localTarget().frontMostApp().mainWindow().pageIndicators()[0];
pageIndicator.selectPage(1);

- 1,796
- 1
- 13
- 11
-
I was having the same problem and your workaround worked well. Thanks for posting it! – André Perazzi Sep 24 '14 at 14:51
same issue here.
More than that, the documentation is missing for new iOS7 for everything related to UI Automation
Compare it with current doc, with full method list and description.

- 509
- 1
- 7
- 12
-
Just came to my mind to test it on a device in it works there, at least on my iPad mini with iOS7 GM it works – Artem Yarulin Sep 14 '13 at 21:25
A workaround: if you want to swipe scroll views containing a button on a later page, just simply tap this (invisible) button, it "scrolls to visible" automatic. (Or call this invisible element's scrollToVisible()
function.)

- 4,502
- 2
- 47
- 63