Skip to content

Most visited

Recently visited

navigation

ViewFinder

public interface ViewFinder

android.support.test.espresso.ViewFinder
Known Indirect Subclasses


Uses matchers to locate particular views within the view hierarchy.

Summary

Public methods

abstract View getView()

Immediately locates a single view within the provided view hierarchy.

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 when multiple views match
NoMatchingViewException when no views match.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.