How to use Fluent wait in appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to use Fluent wait in appium? ...

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 *