Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to verify a toast message in selendroid

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?

like image 620
user2632692 Avatar asked Mar 19 '23 01:03

user2632692


1 Answers

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.

like image 127
Sachin Tyagi Avatar answered Mar 27 '23 20:03

Sachin Tyagi