| Solution |
| 1. |
Create a new task |
Click on New->Task Editor.
Double click on Internet -> Launch Website command. Specify which website you want to launch & window title of that website.
Screenshot 1
Similarly insert commands to launch other websites. |
| 2. |
Ask user for a search keyword |
Double Click on Keyboard/Mouse -> "Prompt" command.
This command will prompt a window in which user can input any search keyword.
Assign user input to a variable so that we can use it later to search in other
websites. Check "Assign the value to an existing variable" check box & select
variable from the drop down box. You can create new variable by clicking on "Variable Manager" button.
Screenshot 2
Specify [ENTER] keystroke to start the search.
Screenshot 3 |
| 3. |
Insert commands to search the keyword in other websites |
Depending on the website, you will have to insert commands to set focus in the search box.
e.g. For http://www.yahoo.com, you have to insert mouse click event to set the cursor
in the search box & then insert keystroke event to type the keyword in the search box.
Here instead of displaying prompt to take input of keyword again, use
the variable (Refer Step 2).
Screenshot 4 |
| |
| When you run this task, it launches websites, ask user for search
keyword and searches in all websites.
This tutorial demonstrates use of 'Launch Website' , 'Insert Prompt'
commands & how to use variable in Automation Anywhere. |