Android Scrollview/ListView mobile : find

598 views
Skip to first unread message

Alan Cooke

unread,
Jul 10, 2013, 10:26:10 AM7/10/13
to appium-...@googlegroups.com
Hi,

I noticed a Commit for mobile:find to enable more granular searching of a list view.  However the example a the top of the commit entry, does shed a whole lot of light for me.

Any hints on this would be great.


Alan

bootstrap online

unread,
Jul 10, 2013, 12:19:14 PM7/10/13
to Alan Cooke, appium-...@googlegroups.com
You can provide multiple selectors to scroll to. The example in the
commit is written in Ruby.
> --
> http://appium.io
> ---
> You received this message because you are subscribed to the Google Groups
> "Appium-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to appium-discus...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appium-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Alan Cooke

unread,
Jul 10, 2013, 12:24:25 PM7/10/13
to appium-...@googlegroups.com, Alan Cooke
Thanks for the response, if I can clarify this with you.

The code is basically an array with the first element scroll, then two arrays each with and int and a string, the int is the number of occurrences and the string one is looking for?

bootstrap online

unread,
Jul 10, 2013, 12:29:51 PM7/10/13
to Alan Cooke, appium-...@googlegroups.com
It's all a big array of commands. The first command is 'scroll' which
tells Appium that we'll be scrolling to the following selectors.

[3, text] means textContains('account')
[7, text] means descriptionContains('account')

The numbers are the command codes. There's a list of what the numbers mean here.
https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/android/dynamic.rb

bootstrap online

unread,
Jul 10, 2013, 12:31:25 PM7/10/13
to Alan Cooke, appium-...@googlegroups.com
If you don't need the advanced features of mobile find, there's a
simple scroll to method.
https://github.com/appium/appium/commit/d2282486af0d60996befc56ef0e97baf8c107bea
Reply all
Reply to author
Forward
0 new messages