assert_text
Verify element text content in WeChat mini-programs using exact, regex, or contains matching to validate UI state.
Instructions
断言元素文本内容
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | 精确匹配的文本 | |
| target | Yes | ||
| textMatches | No | 正则表达式匹配 | |
| textContains | No | 包含的文本 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | Yes | ||
| data | Yes | ||
| meta | Yes | ||
| error | Yes | ||
| warnings | Yes | ||
| nextActions | Yes | ||
| observation | Yes | ||
| partialData | Yes | ||
| schemaVersion | Yes |