Print word or phrase from web page

Suppose I have a word or phrase on a particular page and I want to print it in console How do I do this?

For example, as in the example provided, I would like to know that if KATALON recognizes the word “user name”

It will print it in console - thanks to the helpers


If i’m not wrong what you mean, you should use command runScript with “console.log(“test”);”. It’s work for me. It’s printing this text in browser console but somehow it’s print it 2 times.