Skip to content

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

fix: use user-provided executable_path instead of defaulting to chromium

Billy141cf5cf75a7
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index 5d9852c9f..0efe12ccf 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -1121,8 +1121,8 @@ class BrowserSession(BaseModel):
s.listen(1)
debug_port = s.getsockname()[1]
- # Get chromium executable path from playwright
- chromium_path = self.playwright.chromium.executable_path
+ # Get chromium executable path from browser profile or fall back to to playwright default
+ chromium_path = self.browser_profile.executable_path or self.playwright.chromium.executable_path
# Build chrome launch command with all args
chrome_args = self.browser_profile.get_args()