Cannot getText from Textbox

Hi All!

im having a bit of a problem with the WebUI.getText(obj). It always returns “”

Scenario: There is an empty Textbox (tag: input)
I will setText on the textBox
now i want to verify if what I set there is correct.
I use tboxVal = WebUI.getText(obj)
Then i use WebUI.verifyMatch(tboxVal, [databaseValue], false)

the getText always returns null so the verifyMatch step always fail.

Am I not using the getText command correctly?

Thanks and Regards,
Joseph Payuran

You would expect that setText and getText were mirror images of each other. Not so, I’m afraid.

Use this:

https://docs.katalon.com/katalon-studio/docs/webui-verify-element-attribute-value.html

1 Like

thanks! will try using this!