Stay organized with collections Save and categorize content based on your preferences.

ViewFinder

public interface ViewFinder

Known direct subclasses
ViewFinderImpl

Implementation of ViewFinder.


Uses matchers to locate particular views within the view hierarchy.

Summary

Public methods

abstract View

Immediately locates a single view within the provided view hierarchy.

Public methods

getView

abstract 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
androidx.test.espresso.AmbiguousViewMatcherException androidx.test.espresso.AmbiguousViewMatcherException

when multiple views match

androidx.test.espresso.NoMatchingViewException androidx.test.espresso.NoMatchingViewException

when no views match.