test_assert
Assert web element properties like existence, visibility, text, attributes, and CSS classes in browser automation tests.
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": {
"type": "<type>"
},
"name": "test_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Assertion type | |
| expected | No | Expected value | |
| selector | No | CSS selector | |
| attribute | No | Attribute name (for hasAttribute) |