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
Fix self.page
Magnus Müller987792087bf4
diff --git a/browser_use/dom/service.py b/browser_use/dom/service.pyindex b6924778d..b802fad45 100644--- a/browser_use/dom/service.py+++ b/browser_use/dom/service.py@@ -41,7 +41,7 @@ class DomService:focus_element: int,viewport_expansion: int,) -> DOMElementNode:- if await page.evaluate("1+1") != 2:+ if await self.page.evaluate('1+1') != 2:raise ValueError('The page cannot evaluate javascript code properly')js_code = resources.read_text('browser_use.dom', 'buildDomTree.js')