assertText

suspend fun assertText(tag: String, expected: String)

Asserts that the element matching the tag contains the expected text.

This assertion includes built-in waiting for the text to appear or match.


suspend fun assertText(selector: Selector, expected: String)

Asserts that the element matching the selector contains the expected text.