# WebUiBuiltInKeywords. \*\*\*\*\* URGENT \*\*\*\*\* Script fail in V 5.8 or Later...but works in 5.7 & 5.71

**URL:** <https://forum.katalon.com/t/webuibuiltinkeywords-urgent-script-fail-in-v-5-8-or-later-but-works-in-5-7-5-71/14019>\
**Category:** Miscellaneous\
**Created:** [October 30, 2018, 2:58pm UTC](https://forum.katalon.com/t/webuibuiltinkeywords-urgent-script-fail-in-v-5-8-or-later-but-works-in-5-7-5-71/14019 "2018-10-30T14:58:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [October 31, 2018, 3:30am UTC](https://forum.katalon.com/t/webuibuiltinkeywords-urgent-script-fail-in-v-5-8-or-later-but-works-in-5-7-5-71/14019/3 "2018-10-31T03:30:15Z")

</div>

> [disover katalon](https://forum.katalon.com/profile/9258/disover%20katalon) said:
> 
> The below code perfectly works in Katalon Version 5.7 & 5.7.1 but fails in V 5.8 and later.
> 
> ```auto
> List<WebElement> elements = WebUiBuiltInKeywords.findWebElements(findTestObject('Quotation/MQ/CarrierSearch/Manual_Contract_Red_Icon'), 3)if (elements.size() > 0) // ideally this should return a true or false {	// Do something }
> 
> ```
> 
> 10-24-2018  
> 05:15:01 PM - [ERROR] - com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object  
> Repository/Quotation/MQ/CarrierSearch/Manual\_Contract\_Red\_Icon’ located by  
> ‘By.xpath: //i[@class=‘icon-circle red’]’ not found
> 
> 10-24-2018  
> 05:15:01 PM - [END] - End action :  
> fn.QM.DragAndDropUnique.portCodesAir
> 
> 10-24-2018  
> 05:15:01 PM - [ERROR] - Test  
> Cases/QM/Pre\_Requisite/1\_CSR\_Create\_MQ\_AIR FAILED because (of) (Stack trace: org.codehaus.groovy.runtime.InvokerInvocationException: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object  
> Repository/Quotation/MQ/CarrierSearch/Manual\_Contract\_Red\_Icon’ located by  
> ‘By.xpath: //i[@class=‘icon-circle red’]’ not found
> 
> ```
> at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:100)
> 
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
> 
> ```

This issue will be addressed in version 5.9, right now that function will not return element’s count but throwing an exception instead.

---

_[View the full topic](https://forum.katalon.com/t/webuibuiltinkeywords-urgent-script-fail-in-v-5-8-or-later-but-works-in-5-7-5-71/14019)._
