This tutorial will teach you how to create a basic process in Ui Path Studio in 10 minutes and run it on your machine. Below are the use case for this.
- Open a browser
- Load a web page.
- Scrape information.
- Write it to the output panel and notepad file.
Let's Start
- Launch UiPath Studio. In the HOME Backstage view, click on Start and then click Process to create a new project. The New Blank Process window is displayed.
- In the New Blank Process window:
- Enter a name for the new project and a description that summaries what you are aiming to do with this automation project.
Note: The project name cannot exceed 128 characters, and the description cannot exceed 500 characters. - Select the location where to create the project.
- Select Windows - Legacy for the Compatibility option and VB for Language.
- Enter a name for the new project and a description that summaries what you are aiming to do with this automation project.
- Click Create. The new project is opened in Studio.
- Open Internet Explorer and navigate to https://en.wikipedia.org/wiki/Main_Page. You can use any supported browser, but make sure the required UiPath extension is installed.
- In the Activities panel, search for Use Application/Browser and drag it to the Designer panel. Notice that the activity is automatically added inside a Sequence.
- In Use Application/Browser, click Indicate application to automate, and then move the mouse pointer to the browser page you just opened. When the window is highlighted, click anywhere in the browser page.
- The Use Application/Browser activity is updated, the URL is added to the Browser URL field, and a screenshot of the window appears inside the activity.
- From the Activities panel, add a Get Text activity to the Do container of the Use Application/Browser activity. Click Indicate in IE, and click on the text that you want to scrape from the previously loaded web page.
- In the Variables panel, create a new string variable called GetText, and set its scope to Sequence. The purpose of this variable is to store the scraped information.
- Add another Use Application/Browser activity to the project. Open a Notepad instance, click Indicate application to automate, and then move the mouse pointer to the Notepad window you just opened. When the window is highlighted, click anywhere inside it.
- The Use Application/Browser activity is updated, the path is added to the Application path field, and a screenshot of the window appears inside the activity.
- Add a Type Into activity in the Use Application/Browser activity’s Do container. Click Indicate in App to select the Notepad window, and add the GetText variable to the Type this field. This activity writes the scraped text to a Notepad window.
- In the ribbon, click Run File or use the Ctrl + F6 shortcut to execute the project.
When the execution is completed, notice that the scraped text is written to the output panel, and in the Notepad file.
**************************************************************************************************************************
No comments:
Post a Comment