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")));