Kotlin espresso UI testing with RecyclerView
I used espresso before in java and scrolling RecyclerView or performing click on particular child of recyclerView was pretty easy. Something like this:
onView(withId(R.id.recyclerView))
.perform(RecyclerViewActions.actionOnItemAtPosition(0, click()))
But in kotlin I can not use RecyclerViewActions. Can someone show me how to perform scrolling and clicking on RecyclerView. Thanks!