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
lint
Laith Weinbergerf5df080b41ae
diff --git a/browser_use/browser/watchdogs/local_browser_watchdog.py b/browser_use/browser/watchdogs/local_browser_watchdog.pyindex 16e1f7410..9f2c3d30c 100644--- a/browser_use/browser/watchdogs/local_browser_watchdog.py+++ b/browser_use/browser/watchdogs/local_browser_watchdog.py@@ -1,5 +1,7 @@"""Local browser watchdog for managing browser subprocess lifecycle."""+from __future__ import annotations+import asyncioimport osimport shutil@@ -21,7 +23,7 @@ from browser_use.browser.watchdog_base import BaseWatchdogfrom browser_use.observability import observe_debugif TYPE_CHECKING:- pass+ from browser_use.browser.profile import BrowserChannelclass LocalBrowserWatchdog(BaseWatchdog):@@ -215,7 +217,7 @@ class LocalBrowserWatchdog(BaseWatchdog):raise RuntimeError(f'Failed to launch browser after {max_retries} attempts')@staticmethod- def _find_installed_browser_path(channel: 'BrowserChannel | None' = None) -> str | None:+ def _find_installed_browser_path(channel: BrowserChannel | None = None) -> str | None:"""Try to find browser executable from common fallback locations.If a channel is specified, paths for that browser are searched first.