def name = WebUI.getText(findTestObject("path/to/yourTAG_TestObject"))
def file1 = new File((‘G:/Infox/page’ + name) + ‘.htm’)
https://docs.katalon.com/katalon-studio/docs/webui-get-text.html
If you mean the VALUE of the tag…
def name = WebUI.getValue(findTestObject("path/to/yourTAG_TestObject"))
def file1 = new File((‘G:/Infox/page’ + name) + ‘.htm’)