Skip to content

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

Update test

Magnus Müller8023733bb9f1
diff --git a/tests/ci/test_tools.py b/tests/ci/test_tools.py
index 3e43f79e7..8586ef410 100644
--- a/tests/ci/test_tools.py
+++ b/tests/ci/test_tools.py
@@ -556,13 +556,13 @@ class TestToolsIntegration:
f'Could not find select element in selector map. Available elements: {[f"{idx}: {element.tag_name}" for idx, element in selector_map.items()]}'
)
- # Create a model for the standard select_dropdown_option action
- class SelectDropdownOptionModel(ActionModel):
- select_dropdown_option: dict
+ # Create a model for the standard select_dropdown action
+ class SelectDropdownModel(ActionModel):
+ select_dropdown: dict
# Execute the action with the dropdown index
result = await tools.act(
- SelectDropdownOptionModel(select_dropdown_option={'index': dropdown_index, 'text': 'Second Option'}),
+ SelectDropdownModel(select_dropdown={'index': dropdown_index, 'text': 'Second Option'}),
browser_session,
)