Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIAutomation's dragInsideWithOptions has no effect on iOS7 simulator

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?

like image 309
fabe Avatar asked Sep 13 '13 18:09

fabe


People also ask

How do you refresh iPhone simulator?

Selecting Reload (or pressing ⌘ + r in the iOS simulator) will reload the JavaScript that powers your application.


2 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.

like image 70
QA ios Avatar answered Oct 12 '22 02:10

QA ios


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

Source: https://developer.apple.com/library/prerelease/ios/documentation/ToolsLanguages/Reference/UIAScrollViewClassReference/index.html

Ex:

UIATarget.localTarget().frontMostApp().mainWindow().scrollViews()[0].scrollRight();

Hope it helps!

like image 39
alex Avatar answered Oct 12 '22 00:10

alex