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

前端 未结 7 1557
挽巷
挽巷 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:07

    Also you could make use of the following:

    getDriver().manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
    

    or just:

    driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
    

    or something like the following:

    Thread.sleep(5000);
    
    0 讨论(0)
提交回复
热议问题