Skip to content

net.natura.testcommons.assertions.hasValueInTextField

Lucas de Souza da Conceição edited this page Jul 2, 2020 · 3 revisions

hasValueInTextField

fun hasValueInTextField(expectedText: String): ViewAssertion

Checks if the TextField has a given text.

Example usage:

onView(withId(R.id.the_textfield_id)).check(hasValueInTextField("my text"))

Parameters

expectedText - The text that is expected to be displayed as content.

Clone this wiki locally