So I am trying to scroll and click each cell on table view. I have one section and 13 rows I use following code
Then /^I Traverse TableView$/ do
each_cell(:animate => true) do |row, sec|
txt = query("tableViewCell indexPath:#{row},#{sec} label", :text).first
touch("tableViewCell index:#{row}")
sleep(STEP_PAUSE)
touch "view marked: 'Recipe Book'" #Back button titled "Receipe Book"
sleep(STEP_PAUSE)
end
end
Problem is it skips rows in between and as a result at the end the "i" is missed matched and throws error.
Any idea how I can fix this intermittent row skips?
-katchdoze