How to get xpath or Id of android toast


#1

Hello, I am testing android app using appium. I am writing test case program in Java. I want to verify messages/alerts.
These messages are appearing on toast. I dont know how to get text from toast.
Can anybody please suggest solution for same.

Also how to find xpath or ID of toast, because on inspector id or xpath doesn’t appear.

Thank you


#2

@manjiris What kind of application you are using native or hybrid?


#3

It is native app, I want to automate login functionality.


#5

If the above thing fails, Click here to verify the toast message.


#6