◷ Reading Time: 5 minutes
This tutorial will describe how to automate the process of a Google-search.
If we think the process of searching ‘Flexrule’ in Google and get a list of links on the first page, the steps would be as follows:
- Open a web Browser (eg: Chrome, Firefox)
- Navigate to ‘www.google.com’
- Type ‘Flexrule’ in the search bar
- Press ‘Enter’ key
- Copy each link one by one
- Close the web browser

Video Description
Process Steps
In the following example, we will automate these six steps of a simple Google-search process using Robotic Process Automation (RPA)- Web Toolbox.
Create a new Generic-Flow file
Create a new file using the Generic Flow Template

Open a new web browser
Add a New Browser tool to open the Chrome web browser.


- It requires you to define web1 as a Local variable under Parameters Declaration.
Properties
- Browser Type: Chrome
- Copy Result To: web1
Navigate to the Google page
Add a Navigate_To tool to navigate to the Google page, www.google.com.


Properties
- Target Browser: web1
- Url: https://www.google.com
Search
Add a Keyboard tool to type ‘Flexrule’ and press the ‘Enter’ button. This tool imitates the manual typing of a keyboard.


- The word Flexrule should be typed on the search bar.
- The Google search bar can be located by using its HTML element identifier Name and its value is q.
Properties
- Keys: Flexrule{enter} ({enter} imitates the action of pressing the ‘Enter’ button on the keyboard.)
- Key Action: KeyDown
- Target Browser: web1
- Lookup Key: Name
- Search Value: q (q is the HTML element Name of Google search bar)
Get search results
Add a Get Text tool to get the list of links on the first page.


- After getting the search results, the next step is to find all the links on the first page.
- The links can be located by using the HTML element Identifier TagName and its value is cite.
- After getting the links, they can be stored in an out variable name results.
Properties
- Copy Result To: results
- Target Browser: web1
- Lookup key: TagName
- Search Value: cite
- Multiple Results: True
Close web browser
Add a Close Browser tool to close the web browser.


- After getting the results, the web browser can be closed automatically.
Properties
- Target Browser: web1
Deployment
FlexRule Allows you to deploy your bot with just one click. To learn more, read the Deployment tutorial.
The complete example file can be found in the RPA example project/GoogleSearchFlow.xml
Download the project
Use the attachment at the end of the page to download the sample project.