I have an activity where some dialog is openend. On this dialog there is a spinner. I want to select a specific value in this spinner, but I get following exception:
I had the same error when I tried to match an item inside a spinner inside a dialog-fragment. This helped:
onView(withText(value)).inRoot(isPlatformPopup()).perform(click());