How to verify a toast message in selendroid

android, automation, java, selendroid, selenium

Solution

Please use following code in your selendroid code

waitForElement(By.partialLinkText("Your Toast message"), 4, driver);

where first parameter is your toast message. Second parameter is Time duration in Seconds,third is driver.

Problem

I need to verify a toast message like "created successfully". I tried by using linktext. But its not working.Can anyone help me regarding this?

Original source