Skip to content

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

fix downloads tests

Nick Sweetingb07e838543f5
diff --git a/tests/ci/test_browser_session_downloads.py b/tests/ci/test_browser_session_downloads.py
index 79059538e..09adde99f 100644
--- a/tests/ci/test_browser_session_downloads.py
+++ b/tests/ci/test_browser_session_downloads.py
@@ -122,12 +122,12 @@ async def test_download_detection_timing(test_server, tmp_path):
async def test_actual_download_detection(test_server, tmp_path):
"""Test that actual downloads are detected correctly."""
- downloads_dir = tmp_path / 'downloads'
- downloads_dir.mkdir()
+ downloads_path = tmp_path / 'downloads'
+ downloads_path.mkdir()
browser_session = BrowserSession(
headless=True,
- downloads_dir=str(downloads_dir),
+ downloads_path=str(downloads_path),
user_data_dir=None,
)