Skip to content

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

fix connection tests

Nick Sweeting96ed583d6864
diff --git a/tests/ci/test_sequential_agents_simple.py b/tests/ci/test_sequential_agents_simple.py
index 1590ea1cc..39a1c561b 100644
--- a/tests/ci/test_sequential_agents_simple.py
+++ b/tests/ci/test_sequential_agents_simple.py
@@ -31,7 +31,9 @@ class TestSequentialAgentsSimple:
# Verify browser is running
initial_pid = browser_session.browser_pid
- assert initial_pid is not None
+ # Browser PID detection may fail in CI environments
+ # The important thing is that the browser is connected
+ assert await browser_session.is_connected(restart=False)
# Agent 1: Navigate to page 1
agent1_actions = [