Skip to content

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

Remove cursor:pointer handling from buildDomTree

satya-nutella472bcd656b7d
diff --git a/browser_use/dom/buildDomTree.js b/browser_use/dom/buildDomTree.js
index c247e2804..f0693c095 100644
--- a/browser_use/dom/buildDomTree.js
+++ b/browser_use/dom/buildDomTree.js
@@ -933,12 +933,6 @@
return false;
}
- // treat any element with cursor:pointer as distinct (e.g. expansion icons)
- const style = getCachedComputedStyle(element);
- if (style && style.cursor === 'pointer') {
- return true;
- }
-
const tagName = element.tagName.toLowerCase();
const role = element.getAttribute('role');