Need to get element/object present in a Frame


#1

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


#2

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

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