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 debug message in BrowserSession to clarify page accessibility error
Magnus Müller1200583f648a
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex fa4cfceab..7336cb6ce 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -2631,7 +2631,7 @@ class BrowserSession(BaseModel):# Test if page is still accessibleawait page.evaluate('1')except Exception as e:- self.logger.debug(f'👋 Current page is no longer accessible: {type(e).__name__}: {e}')+ self.logger.debug(f'👋 Current page is not accessible: {type(e).__name__}: {e}')raise BrowserError('Browser closed: no valid pages available')try: