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

# assertIsDisplayed

`fun ViewInteraction.assertIsDisplayed(isDisplayed: `[`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#L38)

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

