Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

always use new headless mode

Nick Sweeting1b07c076c325
diff --git a/browser_use/browser/browser.py b/browser_use/browser/browser.py
index 2dd8a203a..65bb76d61 100644
--- a/browser_use/browser/browser.py
+++ b/browser_use/browser/browser.py
@@ -320,6 +320,7 @@ class Browser:
}
browser = await browser_class.launch(
+ channel='chromium',
headless=self.config.headless,
args=args[self.config.browser_class],
proxy=self.config.proxy.model_dump() if self.config.proxy else None,
diff --git a/tests/test_controller.py b/tests/test_controller.py
index 7d948b4bd..026db5761 100644
--- a/tests/test_controller.py
+++ b/tests/test_controller.py
@@ -40,7 +40,6 @@ class TestControllerIntegration:
browser_instance = Browser(
config=BrowserConfig(
headless=True,
- disable_security=True, # This disables web security features
)
)
yield browser_instance