WebUI keyword missing?

I am trying to get the position of an element. There currently exists a WebUi.getElementLeftPosition keyword, so I assume there would be WebUI.getElementTopPosition as well, but I can’t find it. There’s also no getElementTopPosition keyword in the documentation. Was this intentional or is it a bug?

@“Michael Bryant”: It should be the missing from Katalon.
Please try to use the Custom keyword while waiting for for this fix. Something like:

import com.kms.katalon.core.webui.common.WebUiCommonHelper
import org.openqa.selenium.Point;
import org.openqa.selenium.WebElement;
@Keyword
public int getElementTopPosition(TestObject to){
WebElement element = WebUiCommonHelper.findWebElement(to, 0)
Point element_point = element.getLocation()
int ycord = element_point.getY()
return ycord
}
1 Like