Need to get element/object present in a Frame

Hi,

I need to get the object present in a Frame.
Does anyone know how to get the object by using X, Y coordinates?

Thanks

You could probably use WebUI.clickOffset() if you know the anchor element’s starting position.

https://docs.katalon.com/katalon-studio/docs/webui-click-offset.html#description

TestObject anchor = new TestObject().addProperty('add some property to define the element')
WebUI.switchToIframe()
WebUI.clickOffset(anchor, 5, 5)