onView(withId(R.id.recyclerView))
.perform(actionOnItemAtPosition(0, click()));
Include this in your gradle script:
dependencies {
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.0'
}
More Related Contents:
- Using Espresso to click view inside RecyclerView item
- When using RecyclerView in NestedScrollView , how should i set the height of RecyclerView
- Failed to resolve: com.android.support:cardview-v7:26.0.0 android
- CheckBox in RecyclerView keeps on checking different items
- Nested Recycler view height doesn’t wrap its content
- Simple Android RecyclerView example
- RecyclerView expand/collapse items
- Android Recyclerview GridLayoutManager column spacing
- RecyclerView and java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder in Samsung devices
- how to implement filterable in RealmRecyclerViewAdapter
- Recyclerview inside ScrollView not scrolling smoothly
- How to show an empty view with a RecyclerView?
- Android RecyclerView : notifyDataSetChanged() IllegalStateException
- CardView layout_width=”match_parent” does not match parent RecyclerView width
- Centering RecyclerView items with FlexboxLayoutManager
- Pagination not work for the RecyclerView within NestedScrollView
- When switch fragment with SwipeRefreshLayout during refreshing, fragment freezes but actually still work
- Add a new item to recyclerview programmatically?
- Android RecyclerView: Change layout file LIST to GRID onOptionItemSelected
- Don’t collapse Toolbar when RecyclerView fits the screen
- How to snap RecyclerView items so that every X items would be considered like a single unit to snap to?
- ProgressBars and Espresso
- Understanding RecyclerView setHasFixedSize
- Thread.sleep( ) with Espresso
- How to update/refresh specific item in RecyclerView
- Android: RecyclerView content messed up after scrolling [closed]
- What is the equivalent of [NestedScrollView + RecyclerView] or [Nested RecyclerView (Recycler inside another recycler) in Jetpack compose
- Inconsistency detected in RecyclerView, How to change contents of RecyclerView while scrolling
- Android – Detect when the last item in a RecyclerView is visible
- OnLongItemClick in RecyclerView