Answer by argenkiwi for Android - espresso - clicking on a listview entry...
I needed to test an AdapterView with a custom adapter using Espresso 2 today. I ended up using FeatureMatcher:private static FeatureMatcher<Product, String> withProductName(final String...
View ArticleAnswer by tm1701 for Android - espresso - clicking on a listview entry based...
An addition to the previous answer, I create a complete version with 2 kind of validations. This may help you understand Espresso and Custom Matchers. The difference with the standard Espresso LongList...
View ArticleAnswer by haffax for Android - espresso - clicking on a listview entry based...
The matcher given to onData() must match the desired value returned by Adapter.getItem(int) of the desired ListView.So in your example, the matcher should be something like this:public static...
View ArticleAndroid - espresso - clicking on a listview entry based on custom objects
Espresso is used for automatic testing my App. Edit: below you find a number of answers!How can I click (within an automated Espresso test script) on an entry in a long list of custom objects? In the...
View Article