Alibaba Cloud RPA: Compiling an RPA Application in Visual Mode (Part 7)

By Yanmin

This article is one of a series of lectures on Alibaba Cloud robotic process automation (RPA). It describes how to compile a first RPA application to obtain products from Taobao in visual development mode and how to enable robots to execute processes automatically.

1. Compile an RPA Application

(1) Start the Studio client, click Visual Mode, and create an attended robot, as shown in the following figure:

Image for post
Image for post

(2) Here we use searching for Huawei mobile phones on Taobao.com as an example. The procedure is as follows: Visit Taobao.com, search for Huawei mobile phones, obtain the product elements on the webpage by using the RPA toolkit, and save the obtained product information to the data view.

  • Visit Taobao.com
Image for post
Image for post
  • Search for Huawei mobile phones and click Capture Webpage Elements. The embedded Chrome browser appears.
Image for post
Image for post

Click Start Recording. The input box on the webpage is recorded. Then, click Echo. A flashing red frame is displayed around the recorded input box.

Image for post
Image for post

Enter “Huawei mobile phone” in the Enter Content field.

Image for post
Image for post

Click “Click a webpage element” to record the search button on the webpage.

Image for post
Image for post
Image for post
Image for post
  • Use the RPA toolkit to obtain the product elements on the webpage.
Image for post
Image for post

After you enter “Huawei mobile phone” in the input box, multiple results related to Huawei mobile phones are displayed. Run a loop by clicking Search for Similar Elements to obtain the number of mobile phones.

Image for post
Image for post

Click Search for Similar Elements. All elements of Huawei mobile phones are displayed. So far, we have obtained the number of Huawei mobile phones displayed on the webpage. As shown in the following figure, 48 elements are found.

Image for post
Image for post

Next, run a loop to obtain the information from the webpage.

Obtain the element value on the following webpage:

Image for post
Image for post

Click Interface Design and set a name for the column, as shown in the following figure:

Image for post
Image for post
  • Save the product information obtained to the data view.
Image for post
Image for post

Write the obtained product information to the data table row by row based on the number of loops. The code is as follows:

2. Commissioning Preview

Click Commissioning Preview. On the commissioning page that appears, click Start. The result is shown in the following figure:

Image for post
Image for post

In this way, you can obtain information about Huawei mobile phones searched on the first page of Taobao.com and write the information to the data table. Data on the second and subsequent pages can be retrieved cyclically.

You have now created your first RPA application in visual mode without writing any code. This method is applicable to users who do not have basic programming knowledge. With this method, they can create their own RPA applications that can be automatically executed by robots. The next lecture describes how to publish an application on an enterprise application market and execute the application using an attended robot.

Original Source

https://www.alibabacloud.com/blog/alibaba-cloud-rpa-compiling-an-rpa-application-in-visual-mode-7_595005?spm=a2c41.13104605.0.0

Written by

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store