tap-by-ios-class-chain
Tap mobile app elements on iOS devices using class chain selectors for automation testing. This tool identifies and interacts with UI components by their iOS class hierarchy.
Instructions
Tap on an element using iOS class chain (iOS only)
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": {
"classChain": "<classChain>"
},
"name": "tap-by-ios-class-chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| classChain | Yes | iOS class chain (e.g., '**/XCUIElementTypeButton[`name == "Login"`]') | |
| timeoutMs | No | Timeout in milliseconds (default: 10000) |