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
Louisa684a73fa10c
diff --git a/tests/ci/test_gif_generation_with_navigation.py b/tests/ci/test_gif_generation_with_navigation.pyindex a23acd3e6..440f83621 100644--- a/tests/ci/test_gif_generation_with_navigation.py+++ b/tests/ci/test_gif_generation_with_navigation.py@@ -170,16 +170,20 @@ async def test_gif_generation_without_vision(httpserver, tmp_path):# Verify GIF was created even without visionassert gif_path.exists(), f'GIF was not created at {gif_path} when use_vision=False'-+# Verify GIF has content (non-zero size)assert gif_path.stat().st_size > 0, f'GIF file is empty at {gif_path}'-+# Verify we have screenshots in history for GIF generationscreenshots = history.screenshots(return_none_if_not_screenshot=True)assert screenshots, 'No screenshots found in history for GIF generation'-+# Verify at least one valid screenshot exists (not all placeholders)- valid_screenshots = [s for s in screenshots if s and s != 'iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAE0lEQVR42mP8/5+BgYGBgYGBgQEAAP//AwMC/wE=']+ valid_screenshots = [+ s+ for s in screenshots+ if s and s != 'iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAE0lEQVR42mP8/5+BgYGBgYGBgQEAAP//AwMC/wE='+ ]assert valid_screenshots, 'No valid screenshots found for GIF generation'finally: