assert_attribute
Verify a web element's attribute matches the expected value. Use to validate UI state and catch regressions during Selenium-based browser automation.
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 |