How to scroll a ListView until I see a specific string with Calabash-Android -


i have exact same question post below, except need work android , post below ios. have tried both solutions given in post, don't seem work android. appreciated!

how scroll uitable view down until see cell label "value" in calabash

you can add new step definition , should trick android:

then /^i scroll until see "([^\"]*)" text$/ |text|   q = query("textview text:'#{text}'")   while q.empty?     scroll_down     q = query("textview text:'#{text}'")   end  end 

it works me , hope same you!


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -