Calabash ios has the each_cell method to perform an action on each cell of a table.
each_cell(:query => "tableView", :animate => false, :post_scroll => 0.1) do |row, sec|
touch("tableViewCell indexPath:#{row},#{sec}")
tap "back_button"
end
I got a collection view, then I tried to use the same code
each_cell(:query => "collectionView", :animate => false, :post_scroll => 0.1) do |row, sec|
touch("collectionViewCell indexPath:#{row},#{sec}")
tap "back_button"
end
But it wasn't working and got this error:
NoMethodError: undefined method `times' for "*":String
So I reckon this function could be limited to only cater table views? Any idea on how to perform action on each cell on collection view? Thanks!