# Wait for element to disappear/ not be preset anymore

**URL:** <https://discuss.appium.io/t/wait-for-element-to-disappear-not-be-preset-anymore/22122>\
**Category:** Tutorials/Documentation\
**Created:** [May 18, 2018, 9:40am UTC](https://discuss.appium.io/t/wait-for-element-to-disappear-not-be-preset-anymore/22122 "2018-05-18T09:40:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![4rj](https://discuss.appium.io/letter_avatar_proxy/v4/letter/4/7ba0ec/32.png) [@4rj](https://discuss.appium.io/u/4rj)\
**Post date:** [January 25, 2019, 1:43pm UTC](https://discuss.appium.io/t/wait-for-element-to-disappear-not-be-preset-anymore/22122/7 "2019-01-25T13:43:37Z")

</div>

I use python client for very similar use case and I am able to do it successfully with following code

def wait\_until\_element\_is\_invisible(driver, find\_by, wait\_until=10):  
return WebDriverWait(driver, wait\_until).until(EC.invisibility\_of\_element\_located(find\_by))

---

_[View the full topic](https://discuss.appium.io/t/wait-for-element-to-disappear-not-be-preset-anymore/22122)._
