Can't extract data from an input field [Katalon Recorder]

I don’t know how to get the text from the input-field in the recorder so I use this in my testcase:

def val = WebUI.getAttribute(findTestObject(' '), ‘value’)

WebUI.verifyEqual(val, ‘Discount 10%’, FailureHandling.CONTINUE_ON_FAILURE)