在calabash-ios中拖放?

时间:2013-12-17 08:40:00

标签: ios7 bdd calabash

如何在 Calabash-ios 中执行拖放操作?

我尝试了录音和播放。 它对我不起作用。

还有其他简单方法吗?

1 个答案:

答案 0 :(得分:0)

此示例将一个单元格重新排序到表格视图中其他单元格的位置

touch("UILabel marked:'Edit'") // Touchs table edit button
query_from = "UILabel marked:'Label_of_moving_cell' parent UITableViewCell child view child UITableViewCellReorderControl"
query_to = "UILabel marked:'Label_of_destination_cell' parent UITableViewCell child view child UITableViewCellReorderControl"
pan(query_from,query_to,{duration:1})