I`m getting
android.support.test.espresso.PerformException: Error performing \'send keyCode: 4, metaState: 0 key event\' on view \'Animations or tra
ensure the control you want to work with is visible. this worked for me. add "scrollTo()"
onView(...).perform(scrollTo(), click());