0

I have tried to verify toast in selendroid Automation using partialLinkText as follows:

private boolean getToast(String text) {
   WebDriverWait wait = new WebDriverWait(driver, 3); 
   wait.until(ExpectedConditions.
     presenceOfElementLocated(By.partialLinkText(text)));
   return true;
}

and even i have tried waitForElement too.

 waitForElement(By.partialLinkText(text), 14, driver);

but in both cases the test failed with NoSuchElementException. is selendroid support toasts?

1 Answers1

0

Have you tried something like this:

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.

Tarek
  • 708
  • 5
  • 14