Thursday, 13 August 2015

android espresso assert AlertDialog



Espresso doesn't support a function to assert AlertDialog.

If you want to do the assert, you can:

onView(withText("message on the alertDialog bla bla bla....xxxx")).check(matches(isDisplayed()));


To click buttons on The AlertDialog

onView(withText("OK")).perform(clickMe());





















No comments:

Post a comment