Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Allow id 0
magmueller92f2efd0edb0
diff --git a/src/actions/browser_actions.py b/src/actions/browser_actions.pyindex d83993d48..e15a11dfa 100644--- a/src/actions/browser_actions.py+++ b/src/actions/browser_actions.py@@ -80,7 +80,7 @@ class BrowserActions:else:raise Exception('Id and text are required for input action')elif action_name == 'click':- if action.params and action.params.id:+ if action.params and (action.params.id or action.params.id == 0):self.click_element_by_index(action.params.id)else:raise Exception('Id is required for click action')