We can fetch data from a specific URL, and store it into a variable to access it later.
For example, URL: https://www.amazon.com/s?k=nike&ref=nb_sb_noss
Parameters | Description |
Extraction type-Full URL | Extract https://www.amazon.com/s?k=nike&ref=nb_sb_noss |
Extraction type-Domain | Extract https://www.amazon.com |
Extraction type-Parameter | Enter "k" to extract nike and save to variable;Enter "ref" to extract nb_sb_noss and save to variable; |
Save to | Name a variable to save the value above into this variable. As shown above, we extract the parameter nike from "k" and save it to the variable "var", then we can use the variable "var" in other processes to read nike . |
Get the contents of the clipboard, extract the text and save it into a variable.
FYR, how to copy/cut to clipboard.
Fetching element data is one of the most frequently used operation options. It is often used to obtain webpage elements and then save them as variables. The saved variables can be used in operation options that support "using variables*".
We can get an element on a web page and store it into a variable to access it later.
Parameters | Description |
Selector | Enter your selector, e.g. #email_input , input[type="password"] , .button_search . For your reference, How to use a selector. |
Stored element object | Select a variable that has been saved as an object. |
Element order | Fixed Value: Selects the nth element on the webpage. Random Interval: Randomly selects an element within a specified interval. |
Save to | Save the extracted data as a variable and enter the variable name to make it easy for you to recognize and use it in other processes. The specific type of extrated data depends on what the [Extraction Type] is |
Extraction type | Please see the instruction below. |
For example, HTML as follows:
Enter ". a-cardui-header" as the selector to locate the block <div class="a-cardui-header">
and extract the text inside, such as "AdsPower" and "RPA is excellent".
Enter ". a-cardui-header" as the selector to locate the web elements in the blue box, extract it as an object and save it to a variable.
Suppose we name this variable as "button", we can perform more operations on "button". Such as:
- Extract other data from it.
- Click on this "button"
Similar to extracting objects, a webpage element can be saved as an iframe object, which is essentially an element object. Other RPA operation options can interact with this element object, and you can continue to extract other types of data (text, objects, etc.) from the iframe object.
For example, extract the text from an iframe object named my_iframe
.
Enter ". a-cardui-header" as the selector to locate the web elements in the blue box, which is the child element of <div class="a-cardui-header">
.
Enter "trans" as the selector to extract attribute value. Enter "data-src" as the attribute name and you will get "adspower".
Enter "h2" as the selector to locate the element in the blue box. Enter "trans" as the child element name and the "trans" child element will be stored as an object.
We can store a focused element into a variable.
For example, the search box is focused now.
Scenario: Save the obtained variables to a .txt file. The .txt file is saved in the following location: [RPA] -> [Task Log] -> [Log Details] -> [View Log].
Parameters | Description |
File Name | Name your .txt file |
Template | As shown below, you can type your wanted words or use variable![]() |
You can find the file: RPA - Task Log - Log Details - Check in Folder.
Save data, such as product title and price, to an Excel file. In other words, save variables fetched from the previous step to an Excel file.
Parameters | Description |
File name | Name your Excel file |
Select column | Enter variables as table headers in the Excel file, and the data will be saved correspondingly. Example:![]() |
We can download files from websites.
Parameters | Description |
URL | Enter the URL of the file |
Save in | Select a folder on your computer |
Fetch the data in Excel files and store it into variables for further steps.
For example, you want to search Apple iPhone 13 on Amazon in profile No.802 and search Nike T-shirt on Amazon in profile No.803.
To do it, fill data into Excel.
The first column header must be serial_number. As mentioned in the example above, fill in 802 and 803.
You can delete the column serial_number, if you don't want to specify profiles.
Other column headers cannot start with a digit.
As shown below, you can use the contents of these 3 columns as variables.
Scenario: Save the content of a .txt file as a variable for use in other operations. An example is as follows:
The .txt file format is as follows:
Retrieve emails or extract a specific part from an email.
You can only fetch the latest one of the emails that you received based on the conditions you set.
Parameters | Description |
Variable | Use a saved variable |
Enter your email address | |
Password/App password | Enter your email password or app password. FYR, how to sign in to Gmail with app passwords. Remember to enable IMAP to synchronize your email. |
Email server | Enter mail server, e.g. imap.gmail.com 【POP3 is not supported for now】 |
Port | Mail server port |
Status | Select which status of email to extract |
Date | Select which date of email to extract |
From | Type keywords of the sender. Leaving here empty means all senders |
Subject | Type keywords of the email subject. Leaving here empty means all subjects |
Extract rules | You can enter the extraction rules to extract the text content in the email. For example, if the verification code in the FB email is 'FB-26362', enter 'FB-(\d*)', which means matching the number after FB-, and you can extract the verification code in the FB email. more regular expressions for extract rules. If no extraction rule is entered, the content of the email will be extracted by default. |
Get the verification code generated by your two-factor authenticator.
Parameter | Description |
Verification code | Enter the verification code generated by your two-factor authenticator. Example as follow:![]() |
Save to | Name a variable to save the 2FA code into this variable |
Parameter | Description |
Request URL | ex.: https://www.adspower.net/download?type=test, this is a get request |
Extraction type | Retrieve the following types, and the content obtained is as follows: Full URL: https://www.adspower.net/download?type=test Request Headers: Content of the request headers GET Parameters: Parameter name type, the obtained content is test POST Data: Parameters of the POST interface request |
Save to | Enter the variable name to save the extracted content as a variable. |
Parameter | Description |
Request URL | ex. https://www.adspower.com/download |
Save to | enter the variable name to save the returned request result as a variable. |
You can stop the above listening events at an appropriate time.
Retrieve the page's cookies and save them for use as a variable.
Clear the cookies of the current tab, accounts will be logged out after this operation.