Unable to print value of object

Hi Team,
Here I’m trying to capture the value if inner text object and want to print on the console but with this code, it prints the whole code statement on console please assist print

can you show html of that object?
i suspect that it is input field… try to use getAttribute(…,‘value’) instead of getText

2 Likes

Try using WebUI.getAttribute(findTestObject(....), 'value') instead.

2 Likes

Good timing! :smiley:

Exactly :smiley: