ui.assert_text
Verify UI elements display expected text content in iOS Simulator during React Native/Expo testing. Specify element selector and text to validate exact or partial matches.
Instructions
Assert that an element has specific text content
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>",
"text": "<text>"
},
"name": "ui.assert_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Element selector. | |
| text | Yes | Expected text content. | |
| exact | No | Exact match (true) or contains (false). |