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

# assertIsSelected

`fun ViewInteraction.assertIsSelected(isSelected: `[`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#L52)

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

