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
add changes
neo773e69b11631f3a
diff --git a/browser_use/browser/browser.py b/browser_use/browser/browser.pyindex 277b4961b..7b0b3cbfc 100644--- a/browser_use/browser/browser.py+++ b/browser_use/browser/browser.py@@ -48,7 +48,7 @@ class BrowserConfig:headless: bool = Falsedisable_security: bool = True- extra_chromium_args: list[str] = field(default_factory=list)+ extra_chromium_args: list[str] = field(default_factory=lambda: ['--disable-blink-features=AutomationControlled'])chrome_instance_path: str | None = Nonewss_url: str | None = Nonecdp_url: str | None = None@@ -183,6 +183,7 @@ class Browser:"""Sets up and returns a Playwright Browser instance with anti-detection measures."""browser = await playwright.chromium.launch(headless=self.config.headless,+ channel='chrome',args=self.disable_security_args + self.config.extra_chromium_args,proxy=self.config.proxy,)diff --git a/browser_use/browser/context.py b/browser_use/browser/context.pyindex 5ba55fe4f..933bc81ff 100644--- a/browser_use/browser/context.py+++ b/browser_use/browser/context.py@@ -339,6 +339,8 @@ class BrowserContext:# Expose anti-detection scriptsawait context.add_init_script("""+ // rebrowser is flaky for some reason so we manually delete it+ delete window.__pwInitScripts;// Permissionsconst originalQuery = window.navigator.permissions.query;