I want to the following simple steps using Katalon:
(1) Ask for name. For example, comment pop-up “Enter your name”.
(2) Store this into a variable.
(3) Go to Google.com.
(4) Paste the variable (the name) into the search box in Google.
I don’t understand how I can accomplish the first two steps. Can anyone please help? Thank you.
You can try storevalue or storetext to store variables. The specific judgment is based on the tags in the html. As shown in the picture, I am a Chinese user and cannot use Google search to provide you with a demonstration. The target in the picture needs to enter the xpath of the element.
The first step executes a piece of Javascript to open a prompt and returns the input to a variable. Then it goes to Google and types the value of the variable into the search bar.