How to test Android native error message from toast?

Hi,

I’m testing a native Android application, and on the login page I have a classic error message which point out incorrect username or password for exemple.
I tried to get the path of the element with Appium Inspector but he isn’t recognized, I also tried with direct command from the WD API but I didn’t achieve to find a way to test it correctly.

Any of you have already test this kind of element ? How do yo handle it ?

Here is an exemple of what my application is looking:

Thank you :slight_smile:

Up !

Any methods to test the setError on Android ?
I’ve seen some posts about elementByPartialLinkText but this method seems deprecated and I didn’t found something to replace it in javascript.

Can anyone tell the solution for this.