Skip to content

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

Remove optional xpath from ClickElementAction model

Cursor Agentee2c1d2ad0d2
diff --git a/browser_use/controller/views.py b/browser_use/controller/views.py
index 83abadd4e..50c4796ad 100644
--- a/browser_use/controller/views.py
+++ b/browser_use/controller/views.py
@@ -15,7 +15,6 @@ class GoToUrlAction(BaseModel):
class ClickElementAction(BaseModel):
index: int
- xpath: str | None = None
class InputTextAction(BaseModel):