How to get xpath or Id of android toast

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

1 Like

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

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

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