Menu

Process Management

Process Management includes 7 operations: New Browser, Statement if, For Loop Elements, For Loop Times, For Loop Data, While Loop, Exit Loop, Quit Browser.

New Browser

This step is needed in an RPA process when it requires launching another profile. For instance, Profile A needs to open Profile B to perform certain actions, and then return to Profile A to continue operations.

ParametersDescription
Profile No.Enter the serial number of your desired profile.

Use Variable: use a saved variable
On ErrorSkip: skip the error and continue to execute the code
Stop: Stop code from executing after error
As task completesKeep browser: Keep this browser open when the task inside is finished
Close browser: Close this browser when the task inside is finished


Apply Created Process

Choose a created process by searching in "Select": only reusing the main content of the other processes. "Other settings", "On-error", and "After task completes" follow the configuration of the main process.

If the subprocess is modified, the modification will be applied to the referencing process.

On-error scenario:  the handling of the on-error scenario of the subprocess will depend on the main process.

When the current process sets "Skip" for On-error, if there is an error in the subprocess, the process will skip this step and move to the next step of the subprocess.

When the current process sets "Stop" for On-error, if there is an error in the subprocess, the whole subprocess will be stopped the main process will skip the subprocess and jump to the next operation.


Regarding variables:

Using variables from the subprocess in a main process: Use the "Execute JS Script" step above the "Apply Created Process" to return a null value, ensuring the variable name matches that of the subprocess. After the "Apply Created Process" this variable can then be used, and it will contain the content from the subprocess.

Using variables from the main process in a subprocess: Currently, there is no direct way for a subprocess to use variables from the main process. One workaround is to overwrite a system variable, such as 'comment', in the parent process and then use it in the subprocess.

Variable Conflict: The above two ways reflect that there will be conflict if the variables are the same, so please do a good job of naming the variables to avoid variable name conflict.

Statement if

Compare a variable to a result that you input. Use the if statement to specify the block A to be executed if a condition is true, and use the else statement to specify the block B to be executed if the condition is false.

ParametersDescription
VariableSelect a variable for the condition
ConditionChecking if a Variable Exists
Exist
:
The variable exists -> condition is true -> execute block A
The variable doesn't exist -> condition is false -> execute block B
Not exist:
The variable doesn't exist -> condition is true -> execute block A
The variable exists -> condition is false -> execute block B
Comparing Text, Numerical Values
Less than / less than or equal to / equal to / not equal / greater than / greater than or equal to:
Given that condition is greater than or equal to,
The variable is 50, the result is 30 -> condition is trus -> execute block A
The variable is 50, the result is 200 -> condition is false -> execute block B
Checking if a Piece of Text Contains a Desired Keyword
Example: If a variable name has the value "Apple iPhone 13" and you input "iPhone" as the keyword:
Contains: The variable is "Apple iPhone 13", the result is "iPhone" -> condition is true -> execute block A
Not contains: The variable is "Apple iPhone 13", the result is "iPhone" -> condition is false -> execute block B

Checking if a Variable's Value Exists in a Set of Defined Keywords
Example: If a variable's value is "iPhone 64GB" and you input "iPhone 64GB, iPhone 128GB, iPhone 256GB" as the keywords:
One Of: "iPhone 64GB" is indeed in one of keywords, so the condition is true, and tasks in Area A will be executed.
Not One Of: "iPhone 64GB" is indeed in one of the keywords, so the condition is false, and tasks in Area B will be executed.
ResultEnter a result that you want to compare the variable with. Or click Use variable to choose a stored variable.


For Loop Elements

In Amazon's search results page, many elements have the same code, you can use this function to get the ASIN code of the product, one by one to judge the product name, or click on the specified product and so on.

ParametersDescription
SelectorEnter your selector, e.g. #email_input, input[type="password"], .button_search. For your reference, How to use a selector.
Extraction typePlease refer to this chapter.
文章图片
Save loop element object toYou can save the extracted element object into a variable
Save loop element index toYou can save the extracted element index into a variable. Note: the first item has an index of 0.


FYR, how to execute For Loop Elements with IF condition.


For Loop Times

Loops offer a quick and easy way to do something repeatedly.

For example, like 5 random videos likes, click on 5 random products, etc.

FYR, how to execute For Loop Times with Click.

ParametersDescription
TimesHow many times to loop this action.
Save loop element index toTh saved variable tells you how many times the loop has been executed.


For Loop Data

When You Have the Following Data and Want to Open Respective Websites Using a For Loop

When you execute this process, you can open the links above respectively.

ParametersDescription
DataOnly variables of array and object types are supported. Variables that do not meet these criteria will not appear in the dropdown list.
Save loop element object toThe data for each loop is saved into the appropriate variable.
Save loop element index toThe saved variable tells you how many times the loop has been executed.

While Loop

This step is similar to a For loop, except that there is no need to know how many times it needs to execute. The loop will continue indefinitely until the result inside the While loop becomes false, at which point it will terminate.

The execution condition for the While loop is the same as that of Statement if; the While loop executes when the If statement condition passes, and ends when it does not.

Caution⚠️: Ensure that there are conditions under which the If statement does not pass. If it always passes, the While loop will continue indefinitely.

Refer to Statment if for the data.

Exit Loop

There must be an Exit Loop action specified in the loop, otherwise the loop will get into an infinite number of iterations. After the occurrence of Exit loop, the process exits the loop.

Exit Loop works only inside the loop.

Quit Browser

After executing a process, close the profile.

Previous
Profile Information
Next
Third-Party Tools
Last modified: 2024-08-27Powered by