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

# assertIsEnabled

`fun ViewInteraction.assertIsEnabled(isEnabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): ViewInteraction` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/android-test/src/main/java/mozilla/components/support/android/test/espresso/ViewInteraction.kt#L45)

Asserts the View is enabled or is not enabled based on the Boolean argument.

