How to “wait to activity” using Appium, on begin and during test itself?

前端 未结 7 1577
挽巷
挽巷 2020-12-31 04:06

I\'m starting an already installed app using appium.

After my driver is initialized. How do I make it poll-wait till certain activity is displayed?

I saw onl

7条回答
  •  青春惊慌失措
    2020-12-31 05:05

    WebDriverWait wait = new WebDriverWait(driver,20);
    wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("about_me"))); 
    

    If you wish to know in detail how implicit and explicit wait can be used in Appium then visit this TUTORIAL

提交回复
热议问题