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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With