Skip to content

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

user profile is managed by plawright instead of flags

Nick Sweetingff14e42b83a8
diff --git a/browser_use/browser/chrome.py b/browser_use/browser/chrome.py
index 5a952a157..860fbbc66 100644
--- a/browser_use/browser/chrome.py
+++ b/browser_use/browser/chrome.py
@@ -64,8 +64,8 @@ CHROME_DISABLE_SECURITY_ARGS = [
CHROME_ARGS = [
# Profile data dir setup
# chrome://profile-internals
- f'--user-data-dir={CHROME_PROFILE_PATH}',
- f'--profile-directory={CHROME_PROFILE_USER}',
+ # f'--user-data-dir={CHROME_PROFILE_PATH}', # managed by playwright arg instead
+ # f'--profile-directory={CHROME_PROFILE_USER}',
'--password-store=basic', # use mock keychain instead of OS-provided keychain (we manage auth.json instead)
'--use-mock-keychain',
'--disable-cookie-encryption', # we need to be able to write unencrypted cookies to save/load auth.json
diff --git a/examples/features/custom_output.py b/examples/features/custom_output.py
index cf76d9dcc..a406d5a63 100644
--- a/examples/features/custom_output.py
+++ b/examples/features/custom_output.py
@@ -16,7 +16,7 @@ from dotenv import load_dotenv
from langchain_openai import ChatOpenAI
from pydantic import BaseModel
-from browser_use import ActionResult, Agent, Controller
+from browser_use import Agent, Controller
load_dotenv()