Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Then /^I scroll to cell with "([^\"]*)" label and touch it$/ do |name|
element="TextView text:'#{name}'"
if !element_exists(element)
wait_poll(:until_exists => "TextView text:'#{name}'", :timeout => WAIT_TIMEOUT) do
performAction('scroll_down')
end
if element_exists(element)
touch(element)
sleep(STEP_PAUSE)
else
screenshot_and_raise "could not find the cell"
end
else
touch(element)
sleep(STEP_PAUSE)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment