title: How to get text from Toast message which gets disappeared within few seconds
body: <p>There is a functionality, when i enter invalid login credentials, an error message appears on right side of page showing error message"Please enter valid username and password" but it appears only for few seconds (we call it toast message). I have to validate that error text message in selenium by java. Please suggest me what are the ways to achieve this. Thanks in advance</p>