hasVisibleTextWithTag

open fun hasVisibleTextWithTag(text: String, tagId: Int, tagValue: Any): ViewTreeAssert

Tests if any view in the hierarchy under the root, for which the path is visible, has the requested piece of text as its text and has a tag set on that TextView with the given tag id and tag value.

Return

the assertions object

Parameters

text

the text to search for

tagId

the tag to look for on the TextView containing the searched text

tagValue

the expected value of the tag associated with tagId