Check selectors still match
verify_selectorsChecks a list of CSS or XPath selectors against the current page and reports match counts, helping you detect rotted selectors after UI changes before a test run.
Instructions
Takes a list of selectors and reports, for each, how many elements it matches on the page now. Use it to find selectors that have rotted after a UI change, before a test run does.
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": {
"selectors": "<selectors>"
},
"name": "verify_selectors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selectors | Yes | CSS or XPath selectors to check. |