Closed crystalknight closed 7 years ago
Hi @crystalknight. Normal click() methods won't work for list, both in Barista and Espresso. They are a bit special because items outside the screen don't have any Views in the hierarchy yet.
You should try with BaristaListViewActions
methods, like clickListViewItem(R.id.listview, 4);
.
I don't remember ever using ExpandableListView but it's a subclass of ListView so I hope it will work too.
If you need a matcher more complex than a position, you might need to use the Espresso API. Check out the docs: https://developer.android.com/training/testing/espresso/lists.html
@crystalknight have you tried @Sloy 's solution? Did it workedi
I'm closing this for inactivity. Feel free to reopen it if you have further problems @crystalknight
click(R.string.something) throws exception when element with text outside of screen