public final class

ViewFinderImpl

extends Object
implements ViewFinder
java.lang.Object
   ↳ androidx.test.espresso.base.ViewFinderImpl

Class Overview

Implementation of ViewFinder.

Summary

Public Methods
View getView()
Immediately locates a single view within the provided view hierarchy.
[Expand]
Inherited Methods
From class java.lang.Object
From interface androidx.test.espresso.ViewFinder

Public Methods

public 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