/** * Set newText to the element. * * Existing text is full replaced by this action. * * @param newText New view text. * * @since Espresso Macchiato 0.1 */ public void replaceText(String newText) { findView().perform(ViewActions.replaceText(newText)); }
/** * Check that the element hint has the expected text. * * @param expectedText Expected hint text. * * @since Espresso Macchiato 0.3 */ public void assertHintTextIs(String expectedText) { findView().check(matches(withHint(expectedText))); } }