osama-raddad/android-test-kit

ListView size inside espresso

Closed this issue · 1 comments

What steps will reproduce the problem?
1. I cannot find any way to get listview size for validation inside espresso 
framework

What is the expected output? What do you see instead?
There should be some way to do it.

What version of the product are you using? On what operating system?
1.1

Please provide any additional information below.
Before doing onData.atPosition() i would like to know the maximum value.
How can i do it?

Original issue reported on code.google.com by dmitriy....@gmail.com on 4 Jul 2014 at 6:45

You should avoid having non-deterministic data in tests that requires 
conditional logic.

If you really really have to, use a custom ViewAction that gets the size out. 

Original comment by vale...@google.com on 19 Nov 2014 at 10:08

  • Changed state: Invalid