How to get text just inputted into textbox


I have an issue want to ask in here. I have a textbox and I want to input a string into, after that, I want to get the string in the text box and compare with string I just using.

For e.g:

text = '123456789abcde'
WebUI.setText(findTestObject('my-testob'), test)

it still get text is ‘’ because it not submit to anywhere

How I can solve my issue?
Thank you

text = '123456789abcde'
WebUI.setText(findTestObject('my-testob'), test)
String value = WebUI.getAttribute(findTestObject('my-testob'), "value")
WebUI.comment("value=${value}")      //  will show "123456789abcde"

wow. I using document.querySelector("[name=name]").value but your solution very simple. Thank you so much

1 Like