assert_attribute
Confirm an element's attribute value matches the expected value, using configurable selectors, exact matching, and timeout for robust UI verification.
Instructions
Assert an element attribute has the expected value.
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>",
"attribute": "<attribute>",
"expected": "<expected>"
},
"name": "assert_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | css | |
| exact | No | ||
| timeout | No | ||
| expected | Yes | ||
| selector | Yes | ||
| attribute | Yes |