How can I get the tagname for the webelement?

how can I get the tagname for the webelement?

I don’t see Katalon have build in keyword for this, so I try with this:

import com.kms.katalon.core.webui.common.WebUiCommonHelperWebElement btn_MakeApointment = WebUiCommonHelper.findWebElement(findTestObject("Page_DemoUAT/btn_MakeApointment"), 0)
String tag_btnMakeApointment = btn_MakeApointment.getTagName()
println tag_btnMakeApointment

@nhi Thanks for your reply