Summary: Methods | [Expand All]

# ViewFinder

`public interface ViewFinder`
``

android.support.test.espresso.ViewFinder

Known Indirect Subclasses ViewFinderImpl
ViewFinderImpl | Implementation of `ViewFinder`.

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.

- ## Interfaces

  - BaseLayerComponent
  - EspressoException
  - FailureHandler
  - IdlingResource
  - IdlingResource.ResourceCallback
  - UiController
  - ViewAction
  - ViewAssertion
  - ViewFinder
  - ViewInteractionComponent

- ## Classes

  - AmbiguousViewMatcherException.Builder
  - DataInteraction
  - Espresso
  - GraphHolder
  - IdlingPolicies
  - IdlingPolicy
  - NoMatchingViewException.Builder
  - PerformException.Builder
  - Root
  - Root.Builder
  - ViewInteraction

- ## Exceptions

  - AmbiguousViewMatcherException
  - AppNotIdleException
  - IdlingResourceTimeoutException
  - InjectEventSecurityException
  - NoActivityResumedException
  - NoMatchingRootException
  - NoMatchingViewException
  - PerformException