tb_click
Clicks a web element in a TestingBot browser session using CSS, XPath, ID, name, tag, class, or link-text locators, with an optional wait timeout.
Instructions
Click an element. Use by to pick a locator strategy (css/xpath/id/name/tag/class/linkText/partialLinkText).
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": {
"sessionId": "<sessionId>",
"value": "<value>"
},
"name": "tb_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Locator strategy (default css) | css |
| value | Yes | Locator value (e.g. CSS selector, XPath expression, link text) | |
| sessionId | Yes | Session ID from tb_openBrowser | |
| timeoutMs | No | Implicit wait for the element to appear (default 5000ms). |