Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix downloads timing tests
Nick Sweeting921da7cb22f3
diff --git a/tests/ci/test_browser_session_downloads.py b/tests/ci/test_browser_session_downloads.pyindex efacaf6d6..a4fcf90b7 100644--- a/tests/ci/test_browser_session_downloads.py+++ b/tests/ci/test_browser_session_downloads.py@@ -8,7 +8,7 @@ import pytestfrom browser_use.browser import BrowserSession[email protected](scope='function')async def test_server(httpserver):"""Setup test HTTP server with a simple page."""html_content = """@@ -32,7 +32,6 @@ async def test_server(httpserver):return httpserverasync def test_download_detection_timing(test_server, tmp_path):"""Test that download detection adds 5 second delay to clicks when downloads_dir is set."""@@ -118,7 +117,6 @@ async def test_download_detection_timing(test_server, tmp_path):assert duration_no_downloads < 3, f'Expected <3s without downloads_dir, got {duration_no_downloads:.2f}s'async def test_actual_download_detection(test_server, tmp_path):"""Test that actual downloads are detected correctly."""