How can I fetch the text from a run-time object?

I want to get the value present in the “text” property of an object during run-time. I have tried using WebUI.gettext() How do i go about doing that?

I think you can try to get element attr by:
https://docs.katalon.com/display/KD/[WebUI]+Get+Attribute
or
https://docs.katalon.com/display/KD/[WebUI]+Get+Text

Sometimes, the value you see in an object is saved in “value” attr.

Thanks Trong Bui, got it working.