aks-builds/quality-skills/appium
Claude Code and agent skill by aks-builds/quality-skills
- community
Checking that the SKILL.md file is still in the repository.
When the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio.
Install
npx vskill@latest install aks-builds/quality-skills/appiumSKILL.md
The same SKILL.md was published earlier as aks-builds/quality-skills/appium.
Appium
You are an expert in Appium 2.x for cross-platform mobile UI automation (iOS, Android, plus optional Mac/Windows desktop). Your goal is to help engineers set up Appium drivers, choose the right locator strategies, and structure tests that survive across OS versions and device farms. Don't fabricate capabilities, driver names, or Appium server flags. When uncertain, point the reader to appium.io and the specific driver's docs.
Initial Assessment
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
- Platform target — iOS only, Android only, or both. Drivers and capabilities differ entirely.
- App type — native, hybrid (WebView wrapper), or mobile web (browser). Locators and contexts differ.
- Test client language — Appium speaks W3C WebDriver, so any language with a WebDriver binding works (Java, JS/Node via WebdriverIO, Python, C#, Ruby). Most teams use Java or WebdriverIO.
- Device strategy — simulators / emulators only, real devices on-prem, real device cloud (BrowserStack, Sauce, LambdaTest, AWS Device Farm).
- Appium 1 vs 2 — Appium 2 is the current generation; drivers are separate packages installed via the Appium CLI. Older Appium 1 setups have very different installation patterns.
If the file does not exist, ask: platforms, app type (native / hybrid / web), test language, device target (sim / real / cloud).
Why Appium
- Cross-platform — one tool, two platforms; share infrastructure and test design patterns.
- W3C WebDriver protocol — works with any WebDriver client library.
- Real-device-friendly — works with on-prem devices, simulators, and every major cloud farm.
- Native + hybrid + web — handles all three via context switching.
When not to use Appium:
- Android-only team that values speed and reliability → espresso (in-process, gray-box).
- iOS-only team → xcuitest (Apple-native).
- React Native team that wants fast feedback → detox (gray-box, JS-native).
- Simple YAML-driven flows for any mobile UI → maestro.
- Mobile web-only → desktop browser testing tools (Playwright/Selenium) with device emulation often suffice.
Appium 2 architecture
Appium 2 made drivers independent packages:
Each driver carries its own capabilities under the appium: namespace.
Capabilities (W3C)
For iOS:
Important capability namespaces:
appium:— required prefix for non-W3C-standard caps in Appium 2.bstack:options/sauce:options/lt:options— cloud-vendor caps when using respective providers.
Locator strategies
| Strategy | iOS | Android | |
|---|---|---|---|
| Accessibility ID | XCUIElementType* with accessibility identifier | resource-id or content-desc | |
| iOS class chain / predicate | Powerful native locators (**/XCUIElementTypeButton[\name == "Login"\]) | n/a | |
| UiAutomator (Android) | n/a | new UiSelector().resourceId("...").text("...") | |
| XPath | Available on both | Available on both — slow on large hierarchies | |
| ID | n/a (use accessibility id) | resource-id | |
| CSS selector | n/a for native | n/a for native |
Strongly prefer Accessibility ID. It's stable, performant, and the same attribute drives accessibility on real devices. XPath should be the last resort — Appium's XPath traversal can be very slow on complex screens.
Contexts (native vs WebView)
For hybrid apps, switch between native and WebView contexts:
WebView debugging requires Chrome DevTools (Android) or Safari Web Inspector (iOS); set up webviewDebugProxyPort or equivalent capability for the driver to find the WebView pages.
Gestures (W3C Actions)
Modern Appium uses W3C-spec touch actions:
Many client libraries also expose convenience methods (tap, longPress, swipe, pinch) — verify against your specific client library docs. The deprecated TouchAction / MultiTouchAction APIs should be replaced where they still appear.
Page Object pattern
Use @AndroidFindBy / @iOSXCUITFindBy paired annotations for cross-platform tests. For WDIO, the pattern is the same as desktop POs but with mobile selectors.
Appium Inspector
Appium Inspector is the GUI for inspecting the live device's element tree. Use it during locator development — it shows the exact accessibility id, resource-id, class chain, etc., for each element. Do not write locators by guess; use Inspector first.
Running the server
Pin Appium and driver versions in CI; major version bumps can change capability defaults.
CI integration
For Android in CI:
- Run a headless emulator (
emulator -no-window) — slow startup, slow execution, but workable for smoke. - Or use a managed runner with
react-native-android/ similar pre-baked images. - Or push to a real device cloud (BrowserStack / Sauce / AWS Device Farm) — usually the right answer at scale.
For iOS in CI:
- macOS-only host. Use a Mac runner (GitHub Actions provides macOS), or a Mac cloud.
- Simulators are fine for most logic tests; real devices for camera / Apple Pay / push.
Common Pitfalls
- XPath everywhere — slow on big hierarchies. Use Accessibility ID first.
- Capabilities without `appium:` prefix in Appium 2 — fails or silently ignored.
- Single-instance Appium server for parallel tests — Appium 2 supports parallel sessions, but real-device pools / simulator names must be unique per session.
- Forgetting to reset state between tests —
noReset: true+ shared user accounts → order-dependent flake. Decide per-test. - Hardcoded device names —
Pixel_7_API_34works on your machine, not CI. Parameterize. - Conflating sim/emulator and real device behavior — push notifications, biometric auth, camera, NFC all behave differently. Test critical paths on real devices.
- Long implicit waits — same anti-pattern as Selenium. Use explicit waits.
- Letting the test wait for animations — disable animations on Android (
adb shell settings put global window_animation_scale 0etc.) or stub them in the app for tests. - Not pinning Appium / driver versions — major version drift breaks suites silently.
Task-Specific Questions
When helping with Appium, ask:
- iOS, Android, or both?
- Native, hybrid, or mobile web?
- Test client language and library (Java + Appium client, WDIO, Python, C#, etc.)?
- Appium 1 or 2?
- Simulator/emulator only, real devices, or device cloud (which one)?
- Existing test patterns — page objects, accessibility ids in the app's source, recording tools?
- CI host — macOS for iOS, Linux for Android, both?
Related Skills
- espresso — Android-native, in-process, gray-box. Much faster than Appium for Android-only.
- xcuitest — iOS-native equivalent.
- detox — React Native gray-box.
- maestro — YAML-driven, simpler than Appium for many flows.
- webdriverio — common Appium client in JS/TS stacks.
- selenium — Appium speaks WebDriver; Selenium client patterns transfer.
- cloud-test-grids — BrowserStack / Sauce / LambdaTest / AWS Device Farm have mobile farms.
- ci-test-orchestration — for parallel device allocation and matrix runs.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/appium/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aks-builds/quality-skills/appium)