maestro
БесплатноБез исполняемых скриптовНе проверенMaestro — declarative E2E mobile UI testing framework by mobile.dev. YAML-based flow files, single tool for Android + iOS (and Compose Multiplatform / Flutter…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Maestro — E2E Mobile Testing
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:maestro.
Why Maestro
| Feature | Maestro | Espresso/XCUITest | Detox/Appium |
|---|---|---|---|
| Cross-platform (Android + iOS) | ✅ Single test | ❌ Separate per platform | ✅ |
| Test format | YAML (declarative) | Kotlin / Swift | JS |
| Implicit waits / retry | ✅ Built-in | ❌ Manual waitFor |
Partial |
| Recording mode | ✅ Maestro Studio | ❌ | ❌ |
| Cloud runner | ✅ Free tier on mobile.dev | — | Sauce Labs / BrowserStack |
| Compose / Flutter / RN | ✅ All | Espresso for Compose / XCUITest | Detox: RN only |
| Setup time | < 5 min | hours | 30+ min |
| Flakiness | Low (smart waits) | High (timing) | Medium |
Install
# macOS / Linux
curl -Ls "https://get.maestro.mobile.dev" | bash
# adds to ~/.maestro/bin
# Or via brew
brew tap mobile-dev-inc/tap
brew install maestro
# Windows
# Use WSL2 or Docker; native Windows support limited
# Verify
maestro --version
For iOS testing, also install:
brew install facebook/fb/idb-companion
Project Layout
project-root/
├── .maestro/
│ ├── flows/
│ │ ├── onboarding.yaml
│ │ ├── send_bitcoin.yaml
│ │ ├── receive_bitcoin.yaml
│ │ └── settings.yaml
│ ├── helpers/
│ │ └── common.yaml # reusable subFlow
│ └── config.yaml # global config
├── apps/
│ ├── android/ # APK builds
│ └── ios/ # IPA builds
└── ...
First Flow
.maestro/flows/onboarding.yaml:
appId: com.bhodl.android
---
- launchApp:
clearState: true # fresh state every run
- assertVisible: "Welcome to BHODL"
- tapOn: "Get Started"
- assertVisible: "Create Wallet"
- tapOn: "Create new wallet"
- assertVisible:
text: "Backup your seed"
timeout: 5000
- tapOn:
id: "btn_continue"
- inputText: "my-secure-passphrase"
- tapOn: "Confirm"
- assertVisible: "Wallet created"
Run:
maestro test .maestro/flows/onboarding.yaml
# Run all flows in folder
maestro test .maestro/flows/
# With env var substitution
maestro test -e API_BASE=https://staging.bhodl.app .maestro/flows/
Cross-Platform appId
Same flow, different bundle IDs:
appId: ${APP_ID} # set via env or config
---
- launchApp
APP_ID=com.bhodl.android maestro test flow.yaml
APP_ID=com.bhodl.ios.BHODL maestro test flow.yaml
Or config.yaml:
appId: com.bhodl
flows:
- flows/*.yaml
Selectors
Maestro finds elements by text, id, accessibility label, or content description. Composable rules.
- tapOn: "Send" # exact text match
- tapOn:
text: "Send" # explicit text matcher
- tapOn:
id: "send_button" # by accessibility id (Android: contentDescription, iOS: accessibilityIdentifier)
- tapOn:
text: "Send"
index: 0 # if multiple matches
- tapOn:
text: ".*coin.*" # regex
- tapOn:
point: "50%, 50%" # screen coordinates
- tapOn:
below: "Recipient" # spatial relations
- tapOn:
leftOf: "Cancel"
- tapOn:
enabled: true # filter by state
text: "Continue"
For Compose/SwiftUI testability:
// Compose
Button(
onClick = { /* ... */ },
modifier = Modifier.testTag("send_button"), // accessible to Maestro as id
) { Text("Send") }
// SwiftUI
Button("Send") { /* ... */ }
.accessibilityIdentifier("send_button")
Common Actions
- launchApp:
clearState: true # fresh app state
clearKeychain: true # iOS keychain wipe
arguments:
debug: true
permissions:
camera: allow # auto-grant on launch (iOS 14+, Android)
location: deny
- tapOn: "Button"
- doubleTapOn: "Item"
- longPressOn: "Item"
- swipe:
from: "30%, 50%"
to: "70%, 50%"
- swipe:
direction: UP
- scroll # default scroll
- scrollUntilVisible:
element: "End of list"
direction: DOWN
- inputText: "hello"
- copyTextFrom: "Address field" # to clipboard
- pasteText # from clipboard (iOS only)
- eraseText: 10 # delete N chars
- hideKeyboard
- pressKey: BACK # Android back button
- pressKey: ENTER
- openLink: "bitcoin:bc1q..." # deep link
- openBrowser: "https://example.com"
- back
- waitForAnimationToEnd:
timeout: 5000
- takeScreenshot: "after_send"
- assertVisible: "Sent successfully"
- assertNotVisible: "Error"
- assertTrue: "${output.success == true}"
SubFlows (Reusable)
helpers/login.yaml:
appId: com.bhodl.android
---
- inputText: ${USERNAME}
- tapOn:
id: "password_field"
- inputText: ${PASSWORD}
- tapOn: "Login"
Use:
- runFlow:
file: ../helpers/login.yaml
env:
USERNAME: alice
Установить maestro в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditFAQ
Что делает скилл maestro?
Maestro — declarative E2E mobile UI testing framework by mobile.dev. YAML-based flow files, single tool for Android + iOS (and Compose Multiplatform / Flutter / React Native). Built-in cloud runner, recording mode, JS scripting for complex assertions, screen state diffing, no flakiness from explicit waits. USE WHEN: user mentions "Maestro", "maestro test", "mobile E2E", "cross-platform UI test", "maestro studio", "mobile.dev cloud", ".maestro" folder, "launchApp" YAML DO NOT USE FOR: web E2E - use `testing/playwright` DO NOT USE FOR: unit tests - use `testing/kotest`, `testing/vitest`, etc. DO NOT USE FOR: instrumented Android tests - use Espresso/Compose Test DO NOT USE FOR: snapshot tests - use `testing/compose-snapshot`
Как установить скилл maestro?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл maestro запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic