Command Type
Command Type ID: 5Parameters
Filters Object
Usage Examples
Tap a Button
Tap with Inner Text Filter
Related Commands
- Run App - Launch the app before tapping
- Mouse Click On Elements - Browser equivalent
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Select elements by CSS selector, calculate screen position, and tap
| Parameter | Type | Description | Required |
|---|---|---|---|
| selector | string | The CSS selector to identify the element(s) to tap | Yes |
| timeout | number | The timeout for the command in milliseconds | Yes |
| filters | Filters | Optional filters to refine the elements to tap | No |
| viewportAreaPercentage | number | Percentage of the viewport area (0–100) used to decide which part of the element to tap | No |
| Field | Type | Description | Required |
|---|---|---|---|
| className | string | Filter elements by a specific class name | No |
| includeInnerText | Array of string | Include elements whose inner text contains any of the specified strings | No |
| excludeInnerText | Array of string | Exclude elements whose inner text contains any of the specified strings | No |
{
"command": "tap-on-elements",
"params": {
"selector": "button.submit",
"timeout": 10000
}
}
{
"command": "tap-on-elements",
"params": {
"selector": ".list-item",
"timeout": 10000,
"filters": {
"includeInnerText": ["Accept"]
}
}
}