How to use Fluent wait in appium?



Wait wait = new FluentWait(appiumDriver)
        .withTimeout(10, TimeUnit.SECONDS)
        .pollingEvery(250, TimeUnit.MILLISECONDS)
        .ignoring(NoSuchElementException.class)
        .ignoring(TimeoutException.class);

        wait.until(ExpectedConditions.visibilityOfElementLocated
	(By.id("text1")));

Leave a Reply

Your email address will not be published. Required fields are marked *