Issue with WebUI.waitForElementVisible() and WebUI.waitForElementNotPresent()

In latest Katalon copilot studio 11.5.0, facing issue with WebUI.waitForElementVisible() and WebUI.waitForElementNotPresent()

getting JS error

Hi Vinay,

Please provide: (1) the complete error + stack trace, (2) the generated Groovy code, (3) browser/driver versions, and (4) whether the same code fails outside Copilot. Then we can classify it and file/reproduce it if needed.

Please provide the complete details about the error

If possible provide the log view or console. As I haven’t come across any error till now for those keywords in the latest version

I am not sure how you are using the Keyword waitForElementPresent and waitforElementNotPreset, if you are using to check the if-else logic or loop then it doesn’t work . Please refer the link
Don’t use VerifyElementPresent keyword to test if–else or looping logic - Tips and Tricks - Katalon Community