Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

ViewFinderImpl

public final class ViewFinderImpl
extends Object implements ViewFinder

java.lang.Object
   ↳ android.support.test.espresso.base.ViewFinderImpl


Implementation of ViewFinder.

Summary

Public methods

View getView()

Immediately locates a single view within the provided view hierarchy.

Inherited methods

From class java.lang.Object
From interface android.support.test.espresso.ViewFinder

Public methods

getView

View getView ()

Immediately locates a single view within the provided view hierarchy.

If multiple views match, or if no views match the appropriate exception is thrown.

Returns
View A singular view which matches the matcher we were constructed with.

Throws
AmbiguousViewMatcherException
NoMatchingViewException