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

前端 未结 7 1562
挽巷
挽巷 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条回答
  •  旧时难觅i
    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);
    

提交回复
热议问题