Loop Recording
Loop Recording lets you record a sequence of actions once, then tell RTILA to repeat them multiple times or until a condition is met.
When to Use Loop Recording
Section titled “When to Use Loop Recording”- Scraping multiple pages of search results
- Filling out the same form with different data
- Clicking through a series of similar pages
- Processing a list of items one by one
Starting a Loop Recording
Section titled “Starting a Loop Recording”- Start a regular recording.
- Click Start Loop on the recording indicator.
- Perform the actions you want to repeat.
- Click Stop Loop on the recording indicator.

Configuring the Loop
Section titled “Configuring the Loop”After clicking Stop Loop, a Loop Configuration modal appears:

Loop Types
Section titled “Loop Types”| Type | Description | Configuration |
|---|---|---|
| Repeat fixed number of times | Runs the loop a specific number of times | Enter the number of iterations |
| While element is visible | Keeps looping as long as a specific element is visible | Enter the CSS selector of the element to check |
| For each item in list/dataset | Iterates over a list variable or extracted dataset | Choose source (variable or dataset) and enter the name |
Repeat Fixed Number
Section titled “Repeat Fixed Number”Loop Type: Repeat fixed number of timesNumber of Iterations: 5While Element Is Visible
Section titled “While Element Is Visible”Loop Type: While element is visibleElement Selector: css=.next-page-buttonFor Each Item
Section titled “For Each Item”Loop Type: For each item in list/datasetSource Type: List VariableVariable Name: my_listAssign to loop variable: itemLoop Recording in the Command List
Section titled “Loop Recording in the Command List”After recording, the loop appears as a single command in the command list:
repeat (5 times) ├── click (css=.next-button) ├── wait_for_load_state └── extract_data (products)
Editing Loops
Section titled “Editing Loops”You can edit loop commands like any other command:
- Change the number of iterations
- Change the condition selector
- Add or remove nested commands
- Clone or delete the loop
Loop Variables
Section titled “Loop Variables”In a for_each loop, the current item is available as the loop variable (default: item). You can reference it in nested commands:
fill: css=.search-box value: ${item}click: css=.search-button