Skip to content

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

ruff format

Nick Sweeting7cc55998f5d7
diff --git a/tests/ci/test_aria_menu_dropdown.py b/tests/ci/test_aria_menu_dropdown.py
index 493cf40ab..3855f5820 100644
--- a/tests/ci/test_aria_menu_dropdown.py
+++ b/tests/ci/test_aria_menu_dropdown.py
@@ -245,8 +245,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 select_dropdown_option action