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: use is_new_tab_page() instead of manual about:blank check
claude[bot]8a4dc2382710
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex beee27db9..84b9e83c7 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -2203,9 +2203,9 @@ class BrowserSession(BaseModel):f'⚠️ Failed to get tab info for tab #{page_id}: {_log_pretty_url(page.url)} (using fallback title)')- # Only mark as unusable if it's actually about:blank, otherwise preserve the real URL- if page.url == 'about:blank':- tab_info = TabInfo(page_id=page_id, url='about:blank', title='ignore this tab and do not use it')+ # Only mark as unusable if it's actually a new tab page, otherwise preserve the real URL+ if is_new_tab_page(page.url):+ tab_info = TabInfo(page_id=page_id, url=page.url, title='ignore this tab and do not use it')else:# Preserve the real URL and use a descriptive fallback title# fallback_title = '(title unavailable, page possibly crashed / unresponsive)'