NumberPicker: Espresso Testing

In the previous article we looked at some of the problems that we can have when working with the largely unloved NumberPicker widget. Another area which can be a little tricky with NumberPicker is when it comes to writing Espresso tests for it. In this article we’ll look at some techniques for creating Espresso tests…


Recently in my day job I needed to use a NumberPicker which is a control I have not had reason to use for quite a long time. The experience was quite a frustrating one and in this post we’ll look at some of the issues with it, and some work-arounds.