Skip to content

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.

  • 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
  1. Start a regular recording.
  2. Click Start Loop on the recording indicator.
  3. Perform the actions you want to repeat.
  4. Click Stop Loop on the recording indicator.

Recording indicator showing “Start Loop” button highlighted

After clicking Stop Loop, a Loop Configuration modal appears:

Loop Configuration modal showing loop type dropdown and configuration options

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
Loop Type: Repeat fixed number of times
Number of Iterations: 5
Loop Type: While element is visible
Element Selector: css=.next-page-button
Loop Type: For each item in list/dataset
Source Type: List Variable
Variable Name: my_list
Assign to loop variable: item

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)

Command list showing a repeat command with nested commands indented underneath

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

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