Skip to content

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

fix: undeo unnecessary change

Kalhar Pandya0ea4de219088
diff --git a/browser_use/dom/buildDomTree.js b/browser_use/dom/buildDomTree.js
index 27abb94d3..e7360cee8 100644
--- a/browser_use/dom/buildDomTree.js
+++ b/browser_use/dom/buildDomTree.js
@@ -860,7 +860,7 @@
// Early viewport check - only filter out elements clearly outside viewport
if (viewportExpansion !== -1) {
- const rect = (node);
+ const rect = getCachedBoundingRect(node);
const style = getCachedComputedStyle(node);
// Skip viewport check for fixed/sticky elements as they may appear anywhere