Get text value is not printed in console..

Get text value is not printed in console…

Hi @bhuvaneshwari.b,

I think I can’t help you with that information. Can you provide a little more? or perhaps you might want to go through this. This might help you.

Cheers!

@bhuvaneshwari.b It would surely help if we had more information, but one reason that getText does not print to the console is that it is not the correct statement. If you are trying to get the text of an input or textarea, then you could use WebUI.getAttribute(findTestObject('to'), "value").

println('text is ' + WebUI.getAttribute(findTestObject('to'), "value")

Again, more information will allow us to assist you better.