I have a half code of i need. I will explain:
I need go to some web page, click to print as PDF, select the folder, type the archive name and press same.
Now, i have a half of this, my code is:
Robot robot = new Robot();
With this code, i press “CTRL + P”, press “ENTER”, type “X” in name of archive and press “ENTER”.
But i don’t know how i can type a name for this archive and how to choice the custom path.
Now, i need save my archive with name “X”, because i tell the robot to press “X”, but i want to change this for one word. In Arduino, i use a code like this:
To press a key, i use: Keyboard.release(KEY_LEFT_CTRL);
To type a text, i use: Keyboard.println(“My text here”);
But i don’t know what i do in katalon to type a text and not only a single keyboard key.
My question is:
1 - How i can type a text with robot and not only one key per time?
2 - How i can choice the save path in the code, like a string, and not in the katalon config?
Because i need save each printed page in one path. Thanks.