We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fun withDrawable(@DrawableRes id: Int): TypeSafeMatcher<View>
fun withDrawable(@DrawableRes id:
Int
): TypeSafeMatcher<
View
>
Checks if the view is displaying a given drawable.
Example usage:
onView(withId(R.id.the_imageview)).check(matches(withDrawable(R.drawable.my_drawable)))
id - The drawable's resource id
id