dimanche 27 novembre 2016

Android UI unit-tests: how to find dynamically added checkbox?

In my android app, I have a list of custom items (made of a clickable title + one checkbox without text). Those items are dynamically added.

How can I check one of those checkboxes in my unit tests using Espresso or a similar framework ?

I can't find how to get a reference to one of the checkboxes. Since they are dynamically added, I can't find them by id, like I usually do with static .xml views.




Aucun commentaire:

Enregistrer un commentaire