您应该查看Danny Roa的解决方案Custom RecyclerView
Actions并按以下方式
使用它:
onView(withRecyclerView(R.id.recycler_view) .atPositionOnView(1, R.id.ofElementYouWantToCheck)) .check(matches(withText("Test text")));
您应该查看Danny Roa的解决方案Custom RecyclerView
Actions并按以下方式
使用它:
onView(withRecyclerView(R.id.recycler_view) .atPositionOnView(1, R.id.ofElementYouWantToCheck)) .check(matches(withText("Test text")));