Skip to content

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

fix lint error

Nick Sweetingf90988ed5545
diff --git a/tests/ci/test_aria_menu_dropdown.py b/tests/ci/test_aria_menu_dropdown.py
index 90cdd50c2..5c68ca951 100644
--- a/tests/ci/test_aria_menu_dropdown.py
+++ b/tests/ci/test_aria_menu_dropdown.py
@@ -180,8 +180,13 @@ class TestARIAMenuDropdown:
menu_index = idx
break
+ available_elements = [
+ f"{idx}: {element.tag_name} id={element.attributes.get('id', 'None')} role={element.attributes.get('role', 'None')}"
+ for idx, element in selector_map.items()
+ ]
+
assert menu_index is not None, (
- f'Could not find ARIA menu element in selector map. Available elements: {[f"{idx}: {element.tag_name} id={element.attributes.get('id', 'None')} role={element.attributes.get('role', 'None')}" for idx, element in selector_map.items()]}'
+ f'Could not find ARIA menu element in selector map. Available elements: {available_elements}'
)
# Create a model for the get_dropdown_options action