Skip to content

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

Change browser session fixture scope from 'module' to 'function' in navigation tests for improved isolation and reliability.

Magnus Müllerf29be2aa58b6
diff --git a/tests/ci/browser/test_navigation.py b/tests/ci/browser/test_navigation.py
index 040b29d25..2d6cd4e89 100644
--- a/tests/ci/browser/test_navigation.py
+++ b/tests/ci/browser/test_navigation.py
@@ -74,7 +74,7 @@ def base_url(http_server):
return f'http://{http_server.host}:{http_server.port}'
[email protected](scope='module')
[email protected](scope='function')
async def browser_session():
"""Create a browser session for navigation tests."""
session = BrowserSession(