You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If RecyclerView have 2 or more items, this code throws PerformException, but PerformException.cause is RuntimeException instead of AmbiguousViewMatcherException
Same situation when RecyclerView does not have any item with matcher, for example (all RecyclerView items is displayed):
Description
RecyclerVIewActions.actionOnItem incorrect PerformExceprionCause when matched 0 or more than 1 item
Steps to Reproduce
RecyclerView have more than 1 item with matcher, for example:
onView(withId(R.id.recycler_view).perform(RecyclerViewActions.actionOnItem(isDisplayed(), click()))
If RecyclerView have 2 or more items, this code throws
PerformException
, butPerformException.cause
isRuntimeException
instead ofAmbiguousViewMatcherException
Same situation when RecyclerView does not have any item with matcher, for example (all RecyclerView items is displayed):
onView(withId(R.id.recycler_view).perform(RecyclerViewActions.actionOnItem(not(isDisplayed()), click()))
this code throws
PerformException
, butPerformException.cause
isRuntimeException
instead ofNoMatchingViewException
AndroidX Test and Android OS Versions
androidx.test.espresso:espresso-core:3.4.0
The text was updated successfully, but these errors were encountered: