find_by_test_id
Find a web element by its data-testid attribute to control it in automated browser tests.
Instructions
Find element by data-testid
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": {
"test_id": "<test_id>"
},
"name": "find_by_test_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |