UIAutomation's dragInsideWithOptions has no effect on iOS7 simulator

前端 未结 5 1798
没有蜡笔的小新
没有蜡笔的小新 2020-12-09 12:57

Since I use Xcode 5 and the new iOS 7 simulator to run UIAutomation tests with Instruments, dragInsideWithOptions and dragFromToForDuration functio

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 13:12

    Another workaround: If you have a page control associated with your scroll view, use:

    pageIndicator = UIATarget.localTarget().frontMostApp().mainWindow().pageIndicators()[0];
    pageIndicator.selectPage(1);
    

提交回复
热议问题