Is there a way to select different elements on the same page with the same name or identifier

I am working on a project where some elements have the same name or identifier, when I run them in katalon the first element with that name or identifier is selected but I need the second to be selected. Can katalon do this?

Sorry I forgot tell you import com.kms.katalon.core.webui.common.WebUiCommonHelper

Thanks.

Thankyou for your reply, I inputted that line of code but it don’t seem to be recognised (underlined) do I need to import anything for it to work? Can you give me an example? Sorry I’m new to katalon.

Please use WebUiCommonHelper.findWebElements(test_object) to get a list of the same identified web elements.