1

Is it possible to verify toast in appium, using selendroid mode?

If it does, can someone explain how it's done?

yatestUser
  • 41
  • 4

1 Answers1

1

you can do that using the following code:

selendroidDriver.findElementById("showToastButton").click(); // Button that shows toast upon clicking
        WebElement toast = TestWaiter.waitForElement(By.linkText("Hello selendroid toast!"), 3, selendroidDriver);
        Assert.assertNotNull(toast);
Namrata Bagerwal
  • 1,202
  • 13
  • 27