# How to control time in appium when find element

**URL:** <https://discuss.appium.io/t/how-to-control-time-in-appium-when-find-element/5500>\
**Category:** Support\
**Created:** [August 6, 2015, 5:58am UTC](https://discuss.appium.io/t/how-to-control-time-in-appium-when-find-element/5500 "2015-08-06T05:58:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Umar\_Khan](https://discuss.appium.io/user_avatar/discuss.appium.io/umar_khan/32/6847_2.png) [@Umar\_Khan](https://discuss.appium.io/u/Umar_Khan)\
**Post date:** [August 7, 2015, 7:48pm UTC](https://discuss.appium.io/t/how-to-control-time-in-appium-when-find-element/5500/3 "2015-08-07T19:48:55Z")

</div>

There are implicit and explicit waits. Explicit waits allow you to define maximum wait time and as the condition (e.g., visibility of element) is met the wait will stop and next statement will be executed.

Here is the sample method in java:

public void waitForScreenToLoad(AppiumDriver lDriver, WebElement element, int seconds){

```
          WebDriverWait wait = new WebDriverWait(lDriver,seconds);
          wait.until(ExpectedConditions.visibilityOf(element));

```

}

---

_[View the full topic](https://discuss.appium.io/t/how-to-control-time-in-appium-when-find-element/5500)._
