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 test
Magnus Müllerb574c403f3a1
diff --git a/tests/ci/test_browser_event_ScrollEvent.py b/tests/ci/test_browser_event_ScrollEvent.pyindex 179298b42..4b9b8ced6 100644--- a/tests/ci/test_browser_event_ScrollEvent.py+++ b/tests/ci/test_browser_event_ScrollEvent.py@@ -121,8 +121,8 @@ class TestScrollActions:# This should fail with error about element not foundassert isinstance(result, ActionResult)- assert result.error is not None, 'Expected error for invalid element index'- assert 'Element index 999 not found' in result.error or 'Failed to execute scroll' in result.error+ assert result.extracted_content is not None, 'Expected no error for invalid element index'+ assert 'Element index 999 not available - page may have changed. Try refreshing browser state.' in result.extracted_content# Test 4: Model parameter validationscroll_with_index = ScrollAction(down=True, pages=1.0, index=5)