The below code perfectly works in Katalon Version 5.7 & 5.7.1 but fails in V 5.8 and later.
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)
but fails in V 5.8 and later.
Any screenshot? Any error message? Any stacktrace? Or elements.size() == 0 ?
disover katalon said:
The below code perfectly works in Katalon Version 5.7 & 5.7.1 but fails in V 5.8 and later.
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.
1 Like
Thanks kazurayam and Vinh for your prompt response.
Adding to the above the issue, the Katalon intellisense doesn’t show up for WebUiBuiltInKeywords.findWebElement**s.
**
intellisense.png