# WaitForElement - does not work as required

**URL:** <https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805>\
**Category:** Miscellaneous\
**Created:** [January 11, 2018, 12:28pm UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805 "2018-01-11T12:28:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mansi](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@mansi](https://forum.katalon.com/u/mansi)\
**Post date:** [January 11, 2018, 12:28pm UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805/1 "2018-01-11T12:28:14Z")

</div>

Hello.  
I have converted all my test cases coded purely in Selenium to Katalon tests. However one issue I am facing is that I had used “ **Wait For Element Clickable** ” or “ **Wait For Element Present** ” or any such Wait item, everywhere in my Selenium cases and here when I use the same, it does not quite work. It does not wait for the **timeout** given and immediately shows the test as failed if it does not find the element immediately. Instead if I use “delay” with the same timeout seconds, it works. And because of this I am facing **timeout issue** and most of my cases in Katalon when run together in a test suite are **failing**. This problem did not occur in Selenium cases.

---

<div class="post-metadata">

**Author:** ![ganesh\_shantharam](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@ganesh\_shantharam](https://forum.katalon.com/u/ganesh_shantharam)\
**Post date:** [January 28, 2018, 5:20pm UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805/2 "2018-01-28T17:20:17Z")

</div>

I find the same as mentioned above. Could someone please reply to this. Delay works for me as well but not for wait for element present or clickable.

---

<div class="post-metadata">

**Author:** ![Enrique\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@Enrique\_Rodriguez](https://forum.katalon.com/u/Enrique_Rodriguez)\
**Post date:** [January 31, 2018, 1:00pm UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805/3 "2018-01-31T13:00:50Z")

</div>

Me too. WaitForElementXXX doesn’t work, but if i execute the command alone (right-click–\>execute) it works well.

By the way, kantu for chrome, very similar to katalon recorder, waits 10 seconds for every element before fail action. That’s great feature.

---

<div class="post-metadata">

**Author:** ![melissa.s](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@melissa.s](https://forum.katalon.com/u/melissa.s)\
**Post date:** [April 11, 2018, 8:23am UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805/4 "2018-04-11T08:23:12Z")

</div>

did anyone here figure this out? 🙂

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [April 11, 2018, 9:31am UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805/5 "2018-04-11T09:31:53Z")

</div>

Can I see your execution logs? By the way, any ‘Wait’ keyword from Katalon Studio will not have warning status in case the element can’t be found/visible… etc because it just wait for the element.

I’ve also tried to use ‘Wait For Element Present’ keyword and it does wait within timeout (30 seconds), so can I see your execution logs and your steps?

![](https://s3.amazonaws.com/katalon-forum/editor/bm/f0bxdur6diur.png "Image: https://s3.amazonaws.com/katalon-forum/editor/bm/f0bxdur6diur.png")

[Screen Shot 2018-04-11 at 16.27.39.png](https://s3.amazonaws.com/katalon-forum/editor/bm/f0bxdur6diur.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Ray](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@Daniel\_Ray](https://forum.katalon.com/u/Daniel_Ray)\
**Post date:** [May 21, 2018, 2:59pm UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805/6 "2018-05-21T14:59:26Z")

</div>

What I have found, through experiencing the same issue, is that my path in findTestObject(…) was incorrect. This causes a java null exception to be thrown. At first glance it appears that the wait is not waiting, but in truth, the execution stops due to the null error with finding the object.

---

<div class="post-metadata">

**Author:** ![Ben\_Humphreys](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@Ben\_Humphreys](https://forum.katalon.com/u/Ben_Humphreys)\
**Post date:** [September 17, 2018, 2:00pm UTC](https://forum.katalon.com/t/waitforelement-does-not-work-as-required/8805/7 "2018-09-17T14:00:08Z")

</div>

Was this solved? I am experiencing the same issue using the Wait for element Visible command. It does seem like the Wait for Element Present command, but Wait For Element Visable/Clickable does not wait for the full timeout
