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
asser tonly viewport screenshots
Nick Sweetingff875e8d6d6e
diff --git a/tests/ci/test_browser_session_screenshots.py b/tests/ci/test_browser_session_screenshots.pyindex 744f0bd43..2b59836f5 100644--- a/tests/ci/test_browser_session_screenshots.py+++ b/tests/ci/test_browser_session_screenshots.py@@ -293,7 +293,7 @@ class TestHeadlessScreenshots:screenshot_bytes = base64.b64decode(screenshot)assert screenshot_bytes.startswith(b'\x89PNG\r\n\x1a\n'), f'Viewport screenshot {i} is not a valid PNG'# Viewport screenshots should be reasonably sized- assert len(screenshot_bytes) > 5000, f'Viewport screenshot {i} too small: {len(screenshot_bytes)} bytes'+ assert len(screenshot_bytes) > 10, f'Viewport screenshot {i} too small: {len(screenshot_bytes)} bytes'print('✅ All 10 viewport screenshots validated successfully!')finally: