findTestItem

fun findTestItem(lithoView: LithoView, testKey: String?): TestItem?

Return

Test item if found, null otherwise.

Parameters

lithoView

The component view the component is mounted to.

testKey

The unique identifier the component was constructed with.

See also

(LithoView, String) Note: If there is more than one element mounted under the given key, the last one to render will be returned.

Throws

If the e2e flag is not enabled in the configuration.