# Katalon Recorder 5.8.4 waitForElementPresent generates \[error\] \[object Object\] -\> same issue in 5.9.0

**URL:** <https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239>\
**Category:** Bug Report\
**Tags:** katalon-recorder\
**Created:** [June 23, 2022, 12:33pm UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239 "2022-06-23T12:33:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michel\_Blais63](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/michel_blais63/32/16103_2.png) [@Michel\_Blais63](https://forum.katalon.com/u/Michel_Blais63)\
**Post date:** [June 23, 2022, 12:33pm UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239/1 "2022-06-23T12:33:18Z")

</div>

Since Katalon 5.8.4 update I get “[error] [object Object]” log messages with the “waitForElementPresent” command.

I managed to get some code running by replacing this by “pause” with time values, but it is very inconvenient, take way more time to execute.  
I have many “waitForElementPresent” in my test cases.

ERROR:

#### [info] Executing: | clickAndWait | id=submit | |

#### [info] Executing: | waitForElementPresent | //a[contains(@href, ‘/auction/list’)] | |

#### [error] [object Object]

#### [info] Pausing

#### [info] Stop executing

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/0/1/01b69c3559e75b311a0215d1e1810f809fac8074.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/6/4/648f044a4a77317522bc6eb57d46d5e138c623b5.png)

I usually use the target values like “id=auctionMenu-link” and for this one I also tried with “//a[contains(@href, ‘/auction/list’)]” as well.  
But it does not work.

I reinstalled Katalon Extension  
Using Chrome Version 102.0.5005.115 (Official Build) (64-bit)

Any hints?

**HTML CODE:**

```auto
<li class="group-end">
                <a href="/auction/list" id="auctionMenu-link">
                    Auction/Reserve Sale
                </a>
            </li>

```

---

<div class="post-metadata">

**Author:** ![vu.tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vu.tran/32/20584_2.png) [@vu.tran](https://forum.katalon.com/u/vu.tran)\
**Post date:** [June 24, 2022, 2:47am UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239/2 "2022-06-24T02:47:26Z")

</div>

Hi @Michel_Blais63, thank you for sharing this with us. Our internal team will check and let you know soon. Happy testing!

---

<div class="post-metadata">

**Author:** ![Michel\_Blais63](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/michel_blais63/32/16103_2.png) [@Michel\_Blais63](https://forum.katalon.com/u/Michel_Blais63)\
**Post date:** [June 29, 2022, 2:57am UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239/3 "2022-06-29T02:57:41Z")

</div>

I have extra information that may help find the issue.

When an error occurs, the popup window asking to Continue appears and sometimes, I say sometimes, when I click continue the code continue and looping through a CSV File, the code come back to the line that previously failed and execute the line with “waitForElementPresent”.  
But it sometimes stop at another line where i have another “waitForElementPresent”, I click continue after the popup window appear and sometimes it just stays there, never times out unless I do something in the page, like click another link.  
At one point it cannot finding a simple link as if it’s looking for something that is not there yet.  
The Continue button does not always work, even though the page component is there.  
This code worked for months, cannot wait to have a solution for this issue.

**UPDATE:**  
i just noticed that all my “waitForElementPresent” are after “clickAndWait” commands.  
Looks like this is the cause, I added pause between the “clickAndWait” and the “waitForElementPresent” and the code runs.

Still, this is not efficient, i didn’t have to add pauses before. Code take much longer to run now, half a second is not enough so I use 1 second. Take now 15 minutes more to run the code. But at least it works.  
I will have to add pauses in every code that were working fine before.

Thx.

---

<div class="post-metadata">

**Author:** ![Michel\_Blais63](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/michel_blais63/32/16103_2.png) [@Michel\_Blais63](https://forum.katalon.com/u/Michel_Blais63)\
**Post date:** [July 6, 2022, 2:56pm UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239/4 "2022-07-06T14:56:33Z")

</div>

Hi,  
**Update, The 5.9.0 update did not address my issues.**

Still having **[error] [object Object]** errors after the “clickAndWait” command followed by “waitForElementPresent” command. Error occurs on the “waitForElementPresent”.

I still need to add a “pause” between these two commands to make the code work.

Thank you for any solutions on this matter.

By the way, thank you for allowing the use of the “tab” key to navigate between cells and rows.  
I have been missing this functionality for a long time.

---

<div class="post-metadata">

**Author:** ![vu.tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vu.tran/32/20584_2.png) [@vu.tran](https://forum.katalon.com/u/vu.tran)\
**Post date:** [July 7, 2022, 1:45am UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239/5 "2022-07-07T01:45:27Z")

</div>

Hi Michel, thank you for following up and sorry for the late reply. I’m checking again today and let you know asap. Good day to you 👍.

---

<div class="post-metadata">

**Author:** ![Michel\_Blais63](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/michel_blais63/32/16103_2.png) [@Michel\_Blais63](https://forum.katalon.com/u/Michel_Blais63)\
**Post date:** [July 12, 2022, 2:38pm UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239/6 "2022-07-12T14:38:37Z")

</div>

Hi,  
Definitely, the “clickAndWait” or the “waitForElementPresent” does not wait “long enough”.

What is it waiting for, the 200 OK response or for the page to load completely?

As stated earlier, I need to add the “pause” command before each “waitForElementPresent” command.

Thank You for the help.

---

<div class="post-metadata">

**Author:** ![suhah](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/suhah/32/16104_2.png) [@suhah](https://forum.katalon.com/u/suhah)\
**Post date:** [September 15, 2022, 8:29pm UTC](https://forum.katalon.com/t/katalon-recorder-5-8-4-waitforelementpresent-generates-error-object-object-same-issue-in-5-9-0/66239/7 "2022-09-15T20:29:41Z")

</div>

A similar problem for the commands: WaitForVisible, waitForElementPresent, waitForText, runScript (window.history.forward();). In the logs [error] [Object Object]
