wpf_assert
Assert a WPF element's dependency-property value with an exact invariant-string comparison (use {null} for null) and fail on mismatch; target by element handle or exact automation ID.
Instructions
Assert an element's dependency-property value using an exact ordinal comparison of its invariant string value; use {null} for null. Throws on mismatch. Successful assertions are saved while recording. Use wpf_wait_for_element first for asynchronous changes. Target by exactly one of element_handle or automation_id (exact, case-sensitive AutomationProperties.AutomationId). Use root_handle with automation_id to scope lookup; missing or duplicate IDs fail before input.
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": {
"property_name": "<property_name>",
"expected_value": "<expected_value>"
},
"name": "wpf_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_handle | No | ||
| automation_id | No | ||
| property_name | Yes | ||
| element_handle | No | ||
| expected_value | Yes |