hasVisibleText
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
Return
the assertions object
Parameters
text
the text to search for
Tests if any view has visible text identified by the resource id
Return
the assertions object
Parameters
resourceId
resource id of the text