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?
Aucun commentaire:
Enregistrer un commentaire