How to select error for EditText in Android

I try to automate the Authenticate flow in our app. In sign in screen, i want to test when there’s any errors with login like missing email or password, it will show error.

Right now we use editText.setError("This field is required");
So how can i select the error message and test it.

Thanks all.

any guys have ideas, please! I try researching for a long time but didn’t work.

I’ve been looking at a similar scenario - have not yet found a resolution. I’d like to just execute to Java, but I only see ways to select elements. Any luck?


Has anyone did workaround on this? Please let us know !!!


Any luck guys, really waiting for your solutions