How do i scroll a UITableView down until i see a cell with label "Value" in Calabash/Cucumber. I've been trying to do it using:
Then I swipe down until I see "Value"
and using:
Then I scroll down until I see "Value"
but none of them seem to work. Thanks!
The message I get when I try with the above is obviously:
You can implement step definitions for undefined steps with these snippets:
Then(/^I swipe down until I see "(.*?)"$/) do |arg1| pending # express the regexp above with the code you wish you had end
following should also work
Call this by following
Every cucumber framework has a set of predefined steps. Of course, these steps don't cover all the possibilites. If you need additional functionality, you have to define your own steps:
I can't help you with the exact implementation (what is "Value"?) but you can find the core functions here
Probably you'll need function
(where
uiquery
will betableView
)If you take this function and
element_is_not_hidden
you can create awhile
cycle which will scroll down until you see the "Value".Maybe something similar to the following (I don't know Calabash but I know Frank a little)
table have rows and sections, based how your code is organized use rows or sections in below code
add step definitions
to the ProjectName/features/step_definitions/my_first_steps.rb ruby file and In your calabash script add
its working fine for me.