Example of creating a project
This chapter describes the process to create the RPA flow for a web automation project.
Expected result: The RPA flow must open a browser, search for a specific website, download the required file and save the file to a specified destination.
- Click New Project on the Home tab. The Create Project window is displayed.
-
Specify this information:
- Project Name
- Automation example
- Project Location
- C:\ Users\sidawate\AppData\Local\InforRPA
- Description
- Web automation
- Language
- VB
- Click Create. The Design tab is displayed with the Project menu open by default.
- Select Mainpage.xaml to display the main page for creating the RPA flow for automation.
- Click Activities to display the Activities panel.
- Drag and drop the Open Browser activity (Web>Open Browser) to the Sequence field at the center of the page.
- Select the Open Browser activity and click Properties to view the properties for the activity.
-
Specify this information:
- Browser
- Chrome
- URL
- https://www.google.com
- Click Variable at the bottom panel to add a variable to the Open Browser activity. The variable stores the downloaded file contents from a specific website to the specified location
-
Click Create Variable and specify
this information:
- Name
- Fileoutput
- Variable Type
- String
- Scope
- Sequence
- Default
- Leave blank
Note: This variable can be used for the entire sequence. - Click Activities to display the Activities panel.
-
Drag and drop these additional activities in this order.
- Click
- Read File
- Write File
-
Select the Click activity and click the Properties panel to specify this
property:
- Element
- Specify the Xpath for the element. To obtain the Xpath go the element that you want to click. Right-click the element and search for the Copy full Xpath option. Paste the Xpath in the Element field for the activity. You can also use the Using the Infor RPA Recorder and Inspector tool tool for obtaining the XPath of an element.
-
Select the Read File activity, click the Properties panel to specify these
properties:
- Name
- The name of the file to read
- Source
- The path to the file to read.
- Text
- result
A result variable must be created to store the contents from a file. To create the result variable:
- Select the activity and click Variables.
- Click Create Variable.
- Specify this information:
- Name
- Result
- Variable Type
- String
- Scope
- Sequence. The variable is available for the entire sequence.
- Default
- Leave blank
-
Select the Write File activity and click the Properties panel to specify these
properties:
- Lines
- The list of lines.
- Name
- The name of the text file.
- Source
- The path to the text file.
- Click Save.
- Click Run to run the automation RPA flow. The output panel displays the execution of an RPA flow.
- Click Error List to review errors in the RPA flow, if any.