How to get View from Matcher<View>

kdyz :

How do I get the View from a Matcher?

I need to get the bitmap from a specific element which findbyview is not giving specifically but I could get it by specifying more matchers

Mosius :

Use the check method of ViewInteraction and implement a custom ViewAssertion

onView(TODO("ADD YOUR MATCHER")).check { view, noView ->
    // Get bitmap here
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=71191&siteId=1