Skip to content

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

Linter

Magnus Müllerfad8ed06d6fd
diff --git a/tests/ci/test_browser_event_ScrollEvent.py b/tests/ci/test_browser_event_ScrollEvent.py
index 4b9b8ced6..60e42e274 100644
--- a/tests/ci/test_browser_event_ScrollEvent.py
+++ b/tests/ci/test_browser_event_ScrollEvent.py
@@ -122,7 +122,9 @@ class TestScrollActions:
# This should fail with error about element not found
assert isinstance(result, ActionResult)
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
+ assert (
+ 'Element index 999 not available - page may have changed. Try refreshing browser state.' in result.extracted_content
+ )
# Test 4: Model parameter validation
scroll_with_index = ScrollAction(down=True, pages=1.0, index=5)