# ViewFinderImpl

Summary:[Methods](https://developer.android.com/reference/android/support/test/espresso/base/ViewFinderImpl#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/test/espresso/base/ViewFinderImpl#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/espresso/base/ViewFinderImpl#)  

# ViewFinderImpl

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public

final

class
ViewFinderImpl
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


``


implements

`[ViewFinder](https://developer.android.com/reference/android/support/test/espresso/ViewFinder)`


`

|---|---------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.test.espresso.base.ViewFinderImpl |

<br />

*** ** * ** ***

Implementation of[ViewFinder](https://developer.android.com/reference/android/support/test/espresso/ViewFinder).

## Summary

|                                                                                                                           ### Public methods                                                                                                                            ||
|---------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[View](https://developer.android.com/reference/android/view/View.html) | ` `[getView](https://developer.android.com/reference/android/support/test/espresso/base/ViewFinderImpl#getView())`() ` Immediately locates a single view within the provided view hierarchy. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/base/ViewFinderImpl#)From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                                | | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                             | ` finalize() `                                                                             | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/base/ViewFinderImpl#)From interface` `[android.support.test.espresso.ViewFinder](https://developer.android.com/reference/android/support/test/espresso/ViewFinder)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[View](https://developer.android.com/reference/android/view/View.html) | ` `[getView](https://developer.android.com/reference/android/support/test/espresso/ViewFinder#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.

<br />

|                                                                      Returns                                                                       ||
|------------------------------------------------------------------------|----------------------------------------------------------------------------|
| [View](https://developer.android.com/reference/android/view/View.html) | A singular view which matches the matcher we were constructed with. <br /> |

|                                                                 Throws                                                                  ||
|--------------------------------------------------------------------------------------------------------------------------------------|---|
| [AmbiguousViewMatcherException](https://developer.android.com/reference/android/support/test/espresso/AmbiguousViewMatcherException) |   |
| [NoMatchingViewException](https://developer.android.com/reference/android/support/test/espresso/NoMatchingViewException)             |   |

-

  ## Annotations

  - [Default](https://developer.android.com/reference/android/support/test/espresso/base/Default)
  - [MainThread](https://developer.android.com/reference/android/support/test/espresso/base/MainThread)
  - [RootViewPickerScope](https://developer.android.com/reference/android/support/test/espresso/base/RootViewPickerScope)
-

  ## Interfaces

  - [ActiveRootLister](https://developer.android.com/reference/android/support/test/espresso/base/ActiveRootLister)
  - [IdlingUiController](https://developer.android.com/reference/android/support/test/espresso/base/IdlingUiController)
  - [InterruptableUiController](https://developer.android.com/reference/android/support/test/espresso/base/InterruptableUiController)
-

  ## Classes

  - [DefaultFailureHandler](https://developer.android.com/reference/android/support/test/espresso/base/DefaultFailureHandler)
  - [IdlingResourceRegistry](https://developer.android.com/reference/android/support/test/espresso/base/IdlingResourceRegistry)
  - [RootViewPicker](https://developer.android.com/reference/android/support/test/espresso/base/RootViewPicker)
  - [ViewFinderImpl](https://developer.android.com/reference/android/support/test/espresso/base/ViewFinderImpl)