Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Enter continue same state

Magnus Müllerac607fa0bd2c
diff --git a/browser_use/dom/playground/extraction.py b/browser_use/dom/playground/extraction.py
index 7129db124..a296d8fe1 100644
--- a/browser_use/dom/playground/extraction.py
+++ b/browser_use/dom/playground/extraction.py
@@ -234,8 +234,8 @@ async def test_focus_vs_all_elements():
current_website_index += 1
break # Break inner loop to go to next website
elif answer.strip() == '':
- print('Re-running extraction on current website...')
- break # Break inner loop to re-run extraction
+ print('Re-running extraction on current page state...')
+ continue # Continue inner loop to re-extract DOM without reloading page
elif answer.strip().isdigit():
# Jump to specific website (1-15)
try: