Click
clickActivates a page element by CSS selector, text, role, label, test ID, or XPath to trigger UI actions in Playwright browser workflows.
Instructions
Click an element by selector, text, role, label, test id, or xpath.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | No | ||
| pageId | No | Page id. Defaults to the active page. | |
| selector | Yes | CSS selector, text=..., role=button[name="Save"], testid=..., xpath=..., or label=... | |
| timeoutMs | No | Operation timeout in milliseconds. | |
| clickCount | No |