added stop/resume on found the first item

This commit is contained in:
2026-06-30 19:20:06 +03:30
parent 42ddcdd22e
commit 78265d92ba
5 changed files with 16 additions and 2 deletions
+3
View File
@@ -136,6 +136,9 @@ class DynamicFlow:
click_step = self._run_click(item_id, scroll_step.data.get("element"))
result.steps.append(click_step)
if click_step.success and self.cfg.get("stop_on_first_click", 0):
log.info("Item '%s' clicked — stopping flow", item_id)
return result
human_delay(1.0, 2.5)
log.info(