【发布时间】:2014-08-31 21:37:56
【问题描述】:
我一直在寻找解决这个问题的方法,而且我是葫芦新手,所以我认为询问是一个好的开始。
我有一个UIPageViewController,我想用 Calabash 测试它。我试过使用
Then I swipe right
不适用于UIScrollView 或PageView。然后我发现它与UIScrollView 一起工作,但与PageView 仍然没有任何关系。
Then /^I swipe pageView to the (left|right|up|down)$/ do |direction|
scrollViews = query("scrollView")
scroll("scrollView index:0", direction)
sleep(STEP_PAUSE) # optional
end
Then I swipe to the right
我不知道如何让它为UIPageViewController 工作。如果有人对此有任何见解,那就太好了!感谢您的帮助!
【问题讨论】:
-
这是发生在模拟器还是物理设备上?正如 Rachel Gallen 所指出的,在 iOS 模拟器上滑动有一个已知的 Apple 错误。此处正在跟踪此问题:github.com/calabash/calabash-ios/issues/253
-
Calabash 必须在许多运动部件之间进行协调。 Xcode、instruments、ruby、cucumber、iOS、MacOS、硬件版本都需要准确答题。请参阅这个 calabash-ios 主题 - goo.gl/yQi0bE - 以查看您应该在 SO 帖子中包含的详细信息。
标签: ios objective-c xcode automation calabash