Skip to main content
DemoZalo 0862020654

Control Flow

Loop Elements

Loop through matched elements and perform actions

Block type: loop-elements

The Loop Elements block’s settings panel in the workflow editor.
The block’s settings, as they appear in the editor.

Inputs

NameTypeDefaultDescription
disableBlockbooleanfalseDisable this block
descriptionstring—Node description
loopIdstring—Unique loop ID
findByselectcssSelectorSelector type
cssSelectorxpath
selectorrequiredstring—CSS selector or XPath
waitForSelectorbooleanfalseWait for selector to appear
waitSelectorTimeoutnumber5000Selector wait timeout (ms)
maxLoopstring0Max iterations (0 = unlimited)
reverseLoopbooleanfalseLoop in reverse
actionElSelectorstring—Action element selector within loop
scrollToBottombooleantrueScroll to bottom on each iteration
loadMoreActionselectnoneLoad more action

Example: none

nonescrollclick
loadMoreSelectorstring—Selector for "load more" button (when loadMoreAction is click)
loadMoreMaxWaitnumber10Max wait time for elements to load after clicking (seconds)
actionElMaxWaitTimenumber5Action element max wait (seconds)
actionPageMaxWaitTimenumber10Page max wait time (seconds)

Outputs

  • elementany

    Current element