Print word or sentences 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

katalon_user_name.png

Can you share the URL of your Application Under Test so that I can get access to the login form in question?

I asked generally what is the command that exe this.

https://docs.katalon.com/katalon-studio/docs/webui-get-text.html

I saw this example, didn’t help me to embedded.
I need script with exact example to print in the console word or phrase from web page.

I need script with exact example to print in the console word or phrase from web page.

If you want it, please share the URL of your Application Under Test. Without sharing it, nobody would be able to create sample code.

1 Like

I shared example of what I am looking for.

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
the site is : http://thetestingworld.com/login

I made a sample project.

I created a Test Object named “‘Object Repository/Page_Login/label_User Name’”:

I created a Test Case named “TC1”

When I ran the Test Case I go following output in the log:

***User Name***

I think, this output proves that KATALON recognizes the word “User Name”.

10876TestObject.png

10876TestCase.png

1 Like

Thanks.
I tried it and from any reason the “String” doesn’t recognize and the script can’t be run.

Miron,

I do not see what you mean. Could you take and share screenshot of display where you see “String doesn’t recognize and the script can’t be run”.