Skip to content

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

change action name from click_element to click_element_by_index

Anirudha6196d1f10b39695
diff --git a/tests/test_core_functionality.py b/tests/test_core_functionality.py
index b6b1f271a..424688842 100644
--- a/tests/test_core_functionality.py
+++ b/tests/test_core_functionality.py
@@ -98,7 +98,7 @@ async def test_click_element(llm, context):
history = await agent.run(max_steps=4)
action_names = history.action_names()
assert 'go_to_url' in action_names or 'open_tab' in action_names
- assert 'click_element' in action_names
+ assert 'click_element_by_index' in action_names
@pytest.mark.asyncio