Skip to content

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

Update test_agent_real_tasks to use temporary user data directory and disable headless mode

Magnus Müller6def4c24f140
diff --git a/tests/ci/test_agent_real_tasks.py b/tests/ci/test_agent_real_tasks.py
index 927c57744..9d55442e8 100644
--- a/tests/ci/test_agent_real_tasks.py
+++ b/tests/ci/test_agent_real_tasks.py
@@ -36,8 +36,8 @@ async def test_agent_real_task(task_file):
with tempfile.TemporaryDirectory() as tmp_profile:
session = BrowserSession(
- headless=True,
- user_data_dir=None,
+ # headless=True,
+ user_data_dir=tmp_profile,
channel='chromium',
)
await session.start()