Skip to content

Loop

Loop Element

Usage scenario: When performing operations such as crawling, it is often encountered that many elements have project tags, classes, attributes, etc. You can use this node to loop through and obtain information about each element one by one. example
Instructions for use:

Loop Element

Parameter
Explanation
SelectorInput element selectors, such as #email, input [type = "password"], .button_search, etc. Selector usage can refer to: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors
Data TypeThe data type to be saved, see [Get Element Data] for details.
Start IndexThe index value to start the loop, default is 0
Data Save VariableThe variable name that saves the data obtained in the current loop
Index Save VariableThe variable name that saves the index of the current loop

Loop Data

Usage scenario: Loop through the data of the currently saved variable or table. Loop Data

Parameter
Explanation
DataSelect the data to be looped from variables or tables
Start IndexThe index value to start the loop, default is 0
Data Save VariableThe variable name that saves the data obtained in the current loop
Index Save VariableThe variable name that saves the index of the current loop

Loop Times

Usage scenario: The number of times specified in sequence. Just like when you want to perform an operation multiple times, you can use this node. Loop Times

Parameter
Explanation
Loop TimesThe number of times to loop can be used in conjunction with variables
Start IndexThe index value to start the loop, default is 0
Index Save VariableThe variable name that saves the index of the current loop

While

Usage scenario: Loop to check whether the condition is met, and execute the loop body when the condition is met. While

Break Loop

Usage scenario: After executing the For loop, the loop will continue to execute. If the loop has reached the parameters you want, you can interrupt the loop.

Break Loop