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
Update comment
Magnus Müller9edfdfa68327
diff --git a/browser_use/dom/serializer/serializer.py b/browser_use/dom/serializer/serializer.pyindex 294b2b8fb..1c8ab2b64 100644--- a/browser_use/dom/serializer/serializer.py+++ b/browser_use/dom/serializer/serializer.py@@ -120,7 +120,7 @@ class DOMTreeSerializer:def _create_simplified_tree(self, node: EnhancedDOMTreeNode, depth: int = 0) -> SimplifiedNode | None:"""Step 1: Create a simplified tree with enhanced element detection."""- # Prevent infinite recursion by limiting depth to 30 levels (reduced for stress test pages)+ # Prevent infinite recursion by limiting depth to 30 levelsif depth > 30:return None