[android-components](../../index.md) / [mozilla.components.support.android.test.espresso](../index.md) / [androidx.test.espresso.ViewInteraction](./index.md)

### Extensions for androidx.test.espresso.ViewInteraction

| Name | Summary |
|---|---|
| [assertHasFocus](assert-has-focus.md) | `fun ViewInteraction.assertHasFocus(hasFocus: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): ViewInteraction`<br>Asserts the View has focus or does not have focus based on the Boolean argument. |
| [assertIsChecked](assert-is-checked.md) | `fun ViewInteraction.assertIsChecked(isChecked: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): ViewInteraction`<br>Asserts the View is checked or is not checked based on the Boolean argument. |
| [assertIsDisplayed](assert-is-displayed.md) | `fun ViewInteraction.assertIsDisplayed(isDisplayed: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): ViewInteraction`<br>Asserts the View is displayed or is not displayed based on the Boolean argument. |
| [assertIsEnabled](assert-is-enabled.md) | `fun ViewInteraction.assertIsEnabled(isEnabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): ViewInteraction`<br>Asserts the View is enabled or is not enabled based on the Boolean argument. |
| [assertIsSelected](assert-is-selected.md) | `fun ViewInteraction.assertIsSelected(isSelected: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): ViewInteraction`<br>Asserts the View is selected or is not selected based on the Boolean argument. |
| [click](click.md) | `fun ViewInteraction.click(): ViewInteraction`<br>Shorthand to [ViewActions.click](#) the View. |
