Check locator
check_locatorCount how many elements a Selenium locator matches on a page and check visibility to confirm it targets exactly one visible element.
Instructions
Count what a Selenium locator matches on a page (1 = good) and whether it is visible.
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": {
"url": "<url>",
"locator": "<locator>"
},
"name": "check_locator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| locator | Yes | ||
| session | No | Optional: reach a page behind a login or several steps into a flow |