Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
linter
Magnus Müllerdc0c18f55dbc
diff --git a/browser_use/dom/service.py b/browser_use/dom/service.pyindex 2f0e8c6e4..97d0fbf92 100644--- a/browser_use/dom/service.py+++ b/browser_use/dom/service.py@@ -426,7 +426,7 @@ class DomService:self.logger.warning(f'⚠️ Limiting processing of {original_doc_count} iframes on page to only first {self.max_iframes} to prevent crashes!')- snapshot['documents'] = snapshot['documents'][:self.max_iframes]+ snapshot['documents'] = snapshot['documents'][: self.max_iframes]total_nodes = sum(len(doc.get('nodes', [])) for doc in snapshot['documents'])self.logger.debug(f'🔍 DEBUG: Snapshot contains {len(snapshot["documents"])} frames with {total_nodes} total nodes')