Quantcast
Channel: Android - espresso - clicking on a listview entry based on custom objects - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article


Answer 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 Article


Answer 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 Article

Android - 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
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>