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
ignore nav during nav
Nick Sweetingc0b139e8e9cf
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex 35ed96aed..16dc50a03 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -1602,7 +1602,11 @@ class BrowserSession(BaseModel):if is_new_tab_page(page.url):# Navigate to about:blank if we're on chrome://new-tab-page to avoid security restrictionsif page.url.startswith('chrome://new-tab-page'):- await page.goto('about:blank')+ try:+ # can raise exception if nav is interrupted by another agent nav or human, harmless but annoying+ await page.goto('about:blank', wait_until='domcontentloaded', timeout=1000)+ except Exception:+ passawait self._show_dvd_screensaver_loading_animation(page)page = page or (await self.browser_context.new_page())