# Wait until visible

**URL:** <https://discuss.emberjs.com/t/wait-until-visible/11033>\
**Category:** Testing\
**Created:** [June 29, 2016, 8:55pm UTC](https://discuss.emberjs.com/t/wait-until-visible/11033 "2016-06-29T20:55:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgish](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kgish/32/13333_2.png) [@kgish](https://discuss.emberjs.com/u/kgish)\
**Post date:** [June 29, 2016, 8:55pm UTC](https://discuss.emberjs.com/t/wait-until-visible/11033/1 "2016-06-29T20:55:07Z")

</div>

I would like to wait max number of msecs until a given element is visible before continuing, is this possible?

---

<div class="post-metadata">

**Author:** ![lightblade](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/lightblade/32/15632_2.png) [@lightblade](https://discuss.emberjs.com/u/lightblade)\
**Post date:** [June 30, 2016, 4:45am UTC](https://discuss.emberjs.com/t/wait-until-visible/11033/2 "2016-06-30T04:45:45Z")

</div>

Not currently, but you can follow the thread here: [Add waitFor(selector) test helper · Issue #127 · emberjs/rfcs · GitHub](https://github.com/emberjs/rfcs/issues/127)

---

<div class="post-metadata">

**Author:** ![heatbr](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/heatbr/32/9874_2.png) [@heatbr](https://discuss.emberjs.com/u/heatbr)\
**Post date:** [June 30, 2016, 6:51pm UTC](https://discuss.emberjs.com/t/wait-until-visible/11033/3 "2016-06-30T18:51:42Z")

</div>

Ember try to resolve all Promisse before render. So you could use a dump promisse. Or control it using a timeout javacirpt

```
didInsertElement: function() {
    let cmp = this;
    setTimeout( () => {
       cmp.set("loading", false);
       }, 3000);
    this.set("register-as', this);
}

```
