WebUiBuiltInKeywords.findWebElements is not working

WebUiBuiltInKeywords.findWebElements is not working, even after adding proper imports. Kindly check the below screenshot for details.

Getting exception : groovy.lang.MissingPropertyException


can you share whole exception?

I see it, findWebElements comes from WebUiCommonHelper class, not from WebUI.

WebUiBuiltInKeywords actually does have a findWebElements() method:

You have two mistakes in your script.

1.) You’ve imported the same thing twice (outlined in red below):

New scripts have that import statement by default, so you don’t need to add it again.

2.) The import statement has an alias:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

You either need to refer to the class using the alias:


or remove the alias, and use it the way you are trying:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords


FYI …WebUiBuiltInKeywords.findWebElements was working sometime back without any issue for me.

@Zarashima has confirmed this issue, Kindly check the below post for details.

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

This issue will be addressed in version 5.9, right now that function will not return element’s count but throwing an exception instead.
What version are you using? Current is 6.x

I have highlighted in the screenshot --> v6.2.1

so, your previous post is not applicable, that issue has been fixed since 5.9.
do the imports right, as suggested