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
Works for immo24
Magnus Müllerbc40605639d1
diff --git a/browser_use/dom/buildDomTree.js b/browser_use/dom/buildDomTree.jsindex a093ca47e..539c76225 100644--- a/browser_use/dom/buildDomTree.js+++ b/browser_use/dom/buildDomTree.js@@ -858,15 +858,23 @@return null;}- // Check viewport if needed+ // Early viewport check - only filter out elements clearly outside viewportif (viewportExpansion !== -1) {const rect = getCachedBoundingRect(node);- if (!rect || (+ const style = getCachedComputedStyle(node);++ // Skip viewport check for fixed/sticky elements as they may appear anywhere+ const isFixedOrSticky = style && (style.position === 'fixed' || style.position === 'sticky');++ // Check if element has actual dimensions+ const hasSize = node.offsetWidth > 0 || node.offsetHeight > 0;++ if (!rect || (!isFixedOrSticky && !hasSize && (rect.bottom < -viewportExpansion ||rect.top > window.innerHeight + viewportExpansion ||rect.right < -viewportExpansion ||rect.left > window.innerWidth + viewportExpansion- )) {+ ))) {if (debugMode) PERF_METRICS.nodeMetrics.skippedNodes++;return null;}