- Chapter 1. Basics about RPA
- Chapter 2. Cases
- Chapter 3. Frequently Asked Questions
- 3.1 Is it possible to operate extensions with RPA?
- 3.2 Is it possible to get Email message with RPA?
- 3.3 Is it possible to save data obtained from the website to an excel file?
- 3.4 Does RPA support other websites and scenarios?
- 3.5 How much does RPA cost?
- 3.6 How does RPA point cost?
- Number of task threads”?**">3.7 What is “**Number of task threads”?**
- 3.8 How to check RPA task details?
- 3.9 No node found for selector[d]
Chapter 1. Basics about RPA
1.1 Learning materials
- Using RPA requires some frontend fundamentals. For your reference, the following are some learning materials, or you can find other materials.
- Learning Objective: Read HTML code, use CSS selectors(such as class selectors, ID selectors, attribute selectors, descendant selectors) competently, locate web elements using Chrome DevTools.
HTML Learning:https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Basics
CSS Learning:https://developer.mozilla.org/en-US/docs/Learn/CSS
1.2 How to Locate Web Elements
Step 1. Open the browser, press Ctrl+Shift+I to open DevTools
Step 2. Press Ctrl+F to open the searching box
Step 3. Enter CSS selectors to locate elements. As follows:
- Enter the CSS selector to locate elements. Attention: Web code may change. Try to use various selectors.
- 1 of 1 means you can locate one element by this selector. If 2 of 3, 3 elements can be located by this selector, and the current element is the second.
- The located element.
Step 4. Fill the located selector into the [Selector] .
Chapter 2. Cases
Here are 3 skills need for reading this chapter:
:::info
- Frontend knowledge: Can read HTML code and attributes, and know how to use CSS selectors
- Experienced with AdsPower RPA
- Know how to customize RPA process
:::
2.1 [Import Excel Material]
- Try [Import Excel Material] to complete some forms via RPA.
- For educational purposes only. Please write your own RPA processes for other usage scenarios.
Examples:
- Visit: https://www.mercari.com/login/
- Input username and password at the login screen
Instruction:
Step 1. As is shown in the picture, create an Excel document, fill in two variables in the table header: email and password. After that, save this document.
Step 2. Copy the JSON below and import it into the RPA process. (Note: The site code may change and some selectors may not work. This case is for reference only)
[{"type":"useExcel","config":{"path":"C:\\Users\\snake\\Desktop\\RPA test.xlsx","variableList":["email","password"],"remark":""}},{"type":"newPage","config":{}},{"type":"gotoUrl","config":{"url":"https://www.mercari.com/login/","timeout":30000,"remark":""}},{"type":"waitTime","config":{"timeoutType":"randomInterval","timeout":517,"timeoutMin":7111,"timeoutMax":8145,"remark":""}},{"type":"inputContent","config":{"selector":"[name=\"email\"]","selectorType":"selector","element":"","serial":1,"intervals":300,"content":"${email}","isRandom":"0","randomContent":"${email}","remark":"input Email"}},{"type":"waitTime","config":{"timeoutType":"randomInterval","timeout":400,"timeoutMin":1421,"timeoutMax":2222,"remark":""}},{"type":"inputContent","config":{"selector":"[name=\"password\"]","selectorType":"selector","element":"","serial":1,"intervals":300,"content":"${password}","isRandom":"0","randomContent":"${password}","remark":"input Password"}},{"type":"waitTime","config":{"timeoutType":"randomInterval","timeout":400,"timeoutMin":3421,"timeoutMax":4222,"remark":""}}]
Step 3. Click the [Import] button, and paste the JSON here.
Step 4. Edit [Import Excel Material], [Select Excel] to change the file path.
Step 5. Save this process. Select 3 random profiles to run this RPA task.
2.2 Click the elements in
Click some buttons whose elements are inside
Example:
1.To click the [Eidtar] button which is contained in an
Step 1. Add the operation [Element] to extract the src attribute of an
Step 2. Add the operation [Visit Website] and use this variable URL.
Step 3. Use the CSS selector to locate this button inside the newly opened URL, and reuse the [Click Element] step to click the [Eidtar] button. (Following RPA steps need to be written by yourself, this case only explains the scenario of
2.3 How to use [For Loop Elements]
When RPA is expected to do the same thing repeatedly, [For loop element] is necessary. This link might remind you how to use it: https://www.yuque.com/adspower/rpa/en#za1k0
Take the template [Download Product Images] as an example: how to use [For Loops Elements]. This template is to download the product image on the first page of Amazon search results, i.e., to download product images repeatedly.
Step 1: Choose a selector to locate images. Fill .img.s-image in the selector as shown in the red box.
Step 2: URL, like http://xxxx.jpg and https://xxxx.png, is required to download images. In this case, the value of the src attribute is the URL of this image. We can extract the value of src attribute and save it as a variable: for_elements_item
Step 3: In order to download images, the step [Download File] is essential. We need to fill in the URL with the variable saved in the previous step.
:::warning
Note: The loop works only in the current page.:::
P.S.: If you want to study in detail you can get it in the template [Amazon review crawling].
2.4 How to use [For Loop Times]
When RPA is expected to do the same thing for several times, [For Loop Times] may help you. Take the template [Browse goods on Etsy] as an example: how [For Loop Times] works
To browse 3 random products, we need to click on one of the search results, then scroll the page, click on a relevant button, then go back to continue clicking on another search result. These steps are mechanical and repetitive, that’s why we need [For Loop Times].
This operation contains the steps to be repeated, as shown in the following figure.
P.S.: If you want to study in detail you can get it in the templates [Amazon review crawling] and [Browse goods on Mercari].
Chapter 3. Frequently Asked Questions
3.1 Is it possible to operate extensions with RPA?
Currently, RPA can only operate web elements.
3.2 Is it possible to get Email message with RPA?
Yes! Refer to the section 6.6 https://www.yuque.com/adspower/rpa/en#PWdxb
3.3 Is it possible to save data obtained from the website to an excel file?
Yes! Refer to the section 6.8 https://www.yuque.com/adspower/rpa/en#IXq7Y
3.4 Does RPA support other websites and scenarios?
According to the feedback we have received, RPA is suitable for most scenarios. If you are considering starting to work with RPA, read our “RPA User Manual” at https://www.yuque.com/adspower/rpa/en
3.5 How much does RPA cost?
- RPA is provided for paying users and trial users.
- Running RPA processes will cost RPA “points”, which are not free.
- Click [RPA] - [Process] - [Buy RPA Package] to get the package based on points or duration.
3.6 How does RPA point cost?
As shown below, this task will take 23 points. If you select 10 profiles to run this task, 230 points will be cost. If 100 profiles, 2300 points will be cost, and so on.
3.7 What is “**Number of task threads”?**
When the number is 3, if you select 100 profiles to run RPA task, there will be 3 profiles running the task at the same time, while the rest 97 profiles are in queue.
3.8 How to check RPA task details?
Go to [RPA] - [Task details] - [Log detail] to view the detailed information about an error.
3.9 No node found for selector[d]
As below shown, No node found for selector : [data-name=”activity”] means [data-name=”activity”] selector didn’t locate the web elements.- Try to locate the elements using other selectors
- Probably the elements is not fully loaded due to network reasons, so the selector cannot locate this elements, try to add waiting time before this step.