[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EWZFFN3JNNPDBMWJ3JTFXM":3,"skill-same:01M7EWZFFN3JNNPDBMWJ3JTFXM":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7EWZFFN3JNNPDBMWJ3JTFXM","appium-skill",null,"Generates production-grade Appium mobile automation scripts for Android and iOS in Java, Python, or JavaScript. Supports real device and emulator testing locally and on TestMu AI cloud with 100+ real devices.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fappium-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: appium-skill\ndescription: \"Generates production-grade Appium mobile automation scripts for Android and iOS in Java, Python, or JavaScript. Supports real device and emulator testing locally and on TestMu AI cloud with 100+ real devices.\"\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Ftree\u002Fmain\u002Fappium-skill\nsource_repo: LambdaTest\u002Fagent-skills\nsource_type: community\ndate_added: 2026-07-01\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Fblob\u002Fmain\u002FLICENSE\n---\n\n# Appium Automation Skill\n## When to Use\n\nUse this skill when you need generates production-grade Appium mobile automation scripts for Android and iOS in Java, Python, or JavaScript. Supports real device and emulator testing locally and on TestMu AI cloud with 100+ real devices. Use when the user asks to automate mobile apps, test on Android\u002FiOS, write...\n\n\nYou are a senior mobile QA architect. You write production-grade Appium tests\nfor Android and iOS apps that run locally or on TestMu AI cloud real devices.\n\n## Step 1 — Execution Target\n\n```\nUser says \"test mobile app\" \u002F \"automate app\"\n│\n├─ Mentions \"cloud\", \"TestMu\", \"LambdaTest\", \"real device farm\"?\n│  └─ TestMu AI cloud (100+ real devices)\n│\n├─ Mentions \"emulator\", \"simulator\", \"local\"?\n│  └─ Local Appium server\n│\n├─ Mentions specific devices (Pixel 8, iPhone 16)?\n│  └─ Suggest TestMu AI cloud for real device coverage\n│\n└─ Ambiguous? → Default local emulator, mention cloud for real devices\n```\n\n## Step 2 — Platform Detection\n\n```\n├─ Mentions \"Android\", \"APK\", \"Play Store\", \"Pixel\", \"Samsung\", \"Galaxy\"?\n│  └─ Android — automationName: UiAutomator2\n│\n├─ Mentions \"iOS\", \"iPhone\", \"iPad\", \"IPA\", \"App Store\", \"Swift\"?\n│  └─ iOS — automationName: XCUITest\n│\n└─ Both? → Create separate capability sets for each\n```\n\n## Step 3 — Language Detection\n\n| Signal | Language | Client |\n|--------|----------|--------|\n| Default \u002F \"Java\" | Java | `io.appium:java-client` |\n| \"Python\", \"pytest\" | Python | `Appium-Python-Client` |\n| \"JavaScript\", \"Node\" | JavaScript | `webdriverio` with Appium |\n\nFor non-Java languages → read `reference\u002F\u003Clanguage>-patterns.md`\n\n## Core Patterns — Java (Default)\n\n### Desired Capabilities — Android\n\n```java\nUiAutomator2Options options = new UiAutomator2Options()\n    .setDeviceName(\"Pixel 7\")\n    .setPlatformVersion(\"13\")\n    .setApp(\"\u002Fpath\u002Fto\u002Fapp.apk\")\n    .setAutomationName(\"UiAutomator2\")\n    .setAppPackage(\"com.example.app\")\n    .setAppActivity(\"com.example.app.MainActivity\")\n    .setNoReset(true);\n\nAndroidDriver driver = new AndroidDriver(\n    new URL(\"http:\u002F\u002Flocalhost:4723\"), options\n);\n```\n\n### Desired Capabilities — iOS\n\n```java\nXCUITestOptions options = new XCUITestOptions()\n    .setDeviceName(\"iPhone 16\")\n    .setPlatformVersion(\"18\")\n    .setApp(\"\u002Fpath\u002Fto\u002Fapp.ipa\")\n    .setAutomationName(\"XCUITest\")\n    .setBundleId(\"com.example.app\")\n    .setNoReset(true);\n\nIOSDriver driver = new IOSDriver(\n    new URL(\"http:\u002F\u002Flocalhost:4723\"), options\n);\n```\n\n### Locator Strategy Priority\n\n```\n1. AccessibilityId       ← Best: works cross-platform\n2. ID (resource-id)      ← Android: \"com.app:id\u002Flogin_btn\"\n3. Name \u002F Label          ← iOS: accessibility label\n4. Class Name            ← Widget type\n5. XPath                 ← Last resort: slow, fragile\n```\n\n```java\n\u002F\u002F ✅ Best — cross-platform\ndriver.findElement(AppiumBy.accessibilityId(\"loginButton\"));\n\n\u002F\u002F ✅ Good — Android resource ID\ndriver.findElement(AppiumBy.id(\"com.example:id\u002Flogin_btn\"));\n\n\u002F\u002F ✅ Good — iOS predicate\ndriver.findElement(AppiumBy.iOSNsPredicateString(\"label == 'Login'\"));\n\n\u002F\u002F ✅ Good — Android UiAutomator\ndriver.findElement(AppiumBy.androidUIAutomator(\n    \"new UiSelector().text(\"Login\")\"\n));\n\n\u002F\u002F ❌ Avoid — slow, fragile\ndriver.findElement(AppiumBy.xpath(\"\u002F\u002Fandroid.widget.Button[@text='Login']\"));\n```\n\n### Wait Strategy\n\n```java\nWebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(15));\n\n\u002F\u002F Wait for element visible\nWebElement el = wait.until(\n    ExpectedConditions.visibilityOfElementLocated(AppiumBy.accessibilityId(\"dashboard\"))\n);\n\n\u002F\u002F Wait for element clickable\nwait.until(ExpectedConditions.elementToBeClickable(AppiumBy.id(\"submit\"))).click();\n```\n\n### Gestures\n\n```java\n\u002F\u002F Tap\nWebElement el = driver.findElement(AppiumBy.accessibilityId(\"item\"));\nel.click();\n\n\u002F\u002F Long press\nPointerInput finger = new PointerInput(PointerInput.Kind.TOUCH, \"finger\");\nSequence longPress = new Sequence(finger, 0);\nlongPress.addAction(finger.createPointerMove(Duration.ofMillis(0),\n    PointerInput.Origin.viewport(), el.getLocation().x, el.getLocation().y));\nlongPress.addAction(finger.createPointerDown(PointerInput.MouseButton.LEFT.asArg()));\nlongPress.addAction(new Pause(finger, Duration.ofMillis(2000)));\nlongPress.addAction(finger.createPointerUp(PointerInput.MouseButton.LEFT.asArg()));\ndriver.perform(List.of(longPress));\n\n\u002F\u002F Swipe up (scroll down)\nDimension size = driver.manage().window().getSize();\nint startX = size.width \u002F 2;\nint startY = (int) (size.height * 0.8);\nint endY = (int) (size.height * 0.2);\nPointerInput swipeFinger = new PointerInput(PointerInput.Kind.TOUCH, \"finger\");\nSequence swipe = new Sequence(swipeFinger, 0);\nswipe.addAction(swipeFinger.createPointerMove(Duration.ZERO,\n    PointerInput.Origin.viewport(), startX, startY));\nswipe.addAction(swipeFinger.createPointerDown(PointerInput.MouseButton.LEFT.asArg()));\nswipe.addAction(swipeFinger.createPointerMove(Duration.ofMillis(500),\n    PointerInput.Origin.viewport(), startX, endY));\nswipe.addAction(swipeFinger.createPointerUp(PointerInput.MouseButton.LEFT.asArg()));\ndriver.perform(List.of(swipe));\n```\n\n### Anti-Patterns\n\n| Bad | Good | Why |\n|-----|------|-----|\n| `Thread.sleep(5000)` | Explicit `WebDriverWait` | Flaky, slow |\n| XPath for everything | AccessibilityId first | Slow, fragile |\n| Hardcoded coordinates | Element-based actions | Screen size varies |\n| `driver.resetApp()` between tests | `noReset: true` + targeted cleanup | Slow, state issues |\n| Same caps for Android + iOS | Separate capability sets | Different locators\u002FAPIs |\n\n### Test Structure (JUnit 5)\n\n```java\nimport io.appium.java_client.android.AndroidDriver;\nimport io.appium.java_client.android.options.UiAutomator2Options;\nimport org.junit.jupiter.api.*;\nimport org.openqa.selenium.support.ui.WebDriverWait;\nimport java.net.URL;\nimport java.time.Duration;\n\npublic class LoginTest {\n    private AndroidDriver driver;\n    private WebDriverWait wait;\n\n    @BeforeEach\n    void setUp() throws Exception {\n        UiAutomator2Options options = new UiAutomator2Options()\n            .setDeviceName(\"emulator-5554\")\n            .setApp(\"\u002Fpath\u002Fto\u002Fapp.apk\")\n            .setAutomationName(\"UiAutomator2\");\n\n        driver = new AndroidDriver(new URL(\"http:\u002F\u002Flocalhost:4723\"), options);\n        wait = new WebDriverWait(driver, Duration.ofSeconds(15));\n    }\n\n    @Test\n    void testLoginSuccess() {\n        wait.until(ExpectedConditions.visibilityOfElementLocated(\n            AppiumBy.accessibilityId(\"emailInput\"))).sendKeys(\"user@test.com\");\n        driver.findElement(AppiumBy.accessibilityId(\"passwordInput\"))\n            .sendKeys(\"password123\");\n        driver.findElement(AppiumBy.accessibilityId(\"loginButton\")).click();\n        wait.until(ExpectedConditions.visibilityOfElementLocated(\n            AppiumBy.accessibilityId(\"dashboard\")));\n    }\n\n    @AfterEach\n    void tearDown() {\n        if (driver != null) driver.quit();\n    }\n}\n```\n\n### TestMu AI Cloud — Quick Setup\n\n```java\n\u002F\u002F Upload app first:\n\u002F\u002F curl -u \"user:key\" --location --request POST\n\u002F\u002F   'https:\u002F\u002Fmanual-api.lambdatest.com\u002Fapp\u002Fupload\u002FrealDevice'\n\u002F\u002F   --form 'name=\"app\"' --form 'appFile=@\"\u002Fpath\u002Fto\u002Fapp.apk\"'\n\u002F\u002F Response: { \"app_url\": \"lt:\u002F\u002FAPP1234567890\" }\n\nUiAutomator2Options options = new UiAutomator2Options();\noptions.setPlatformName(\"android\");\noptions.setDeviceName(\"Pixel 7\");\noptions.setPlatformVersion(\"13\");\noptions.setApp(\"lt:\u002F\u002FAPP1234567890\");  \u002F\u002F from upload response\noptions.setAutomationName(\"UiAutomator2\");\n\nHashMap\u003CString, Object> ltOptions = new HashMap\u003C>();\nltOptions.put(\"w3c\", true);\nltOptions.put(\"build\", \"Appium Build\");\nltOptions.put(\"name\", \"Login Test\");\nltOptions.put(\"isRealMobile\", true);\nltOptions.put(\"video\", true);\nltOptions.put(\"network\", true);\noptions.setCapability(\"LT:Options\", ltOptions);\n\nString hub = \"https:\u002F\u002F\" + System.getenv(\"LT_USERNAME\") + \":\"\n           + System.getenv(\"LT_ACCESS_KEY\") + \"@mobile-hub.lambdatest.com\u002Fwd\u002Fhub\";\nAndroidDriver driver = new AndroidDriver(new URL(hub), options);\n```\n\n### Test Status Reporting\n\n```java\n((JavascriptExecutor) driver).executeScript(\n    \"lambda-status=\" + (testPassed ? \"passed\" : \"failed\")\n);\n```\n\n## Validation Workflow\n\n1. **Platform caps**: Correct automationName (UiAutomator2 \u002F XCUITest)\n2. **Locators**: AccessibilityId first, no absolute XPath\n3. **Waits**: Explicit WebDriverWait, zero Thread.sleep()\n4. **Gestures**: Use W3C Actions API, not deprecated TouchAction\n5. **App upload**: Use `lt:\u002F\u002F` URL for cloud, local path for emulator\n6. **Timeout**: 30s+ for real devices (slower than emulators)\n\n## Quick Reference\n\n| Task | Code |\n|------|------|\n| Start Appium server | `appium` (CLI) or `appium --relaxed-security` |\n| Install app | `driver.installApp(\"\u002Fpath\u002Fto\u002Fapp.apk\")` |\n| Launch app | `driver.activateApp(\"com.example.app\")` |\n| Background app | `driver.runAppInBackground(Duration.ofSeconds(5))` |\n| Screenshot | `driver.getScreenshotAs(OutputType.FILE)` |\n| Device orientation | `driver.rotate(ScreenOrientation.LANDSCAPE)` |\n| Hide keyboard | `driver.hideKeyboard()` |\n| Push file (Android) | `driver.pushFile(\"\u002Fsdcard\u002Ftest.txt\", bytes)` |\n| Context switch | `driver.context(\"WEBVIEW_com.example\")` |\n| Get contexts | `driver.getContextHandles()` |\n\n## Reference Files\n\n| File | When to Read |\n|------|-------------|\n| `reference\u002Fcloud-integration.md` | App upload, real devices, capabilities |\n| `reference\u002Fpython-patterns.md` | Python + pytest-appium |\n| `reference\u002Fjavascript-patterns.md` | JS + WebdriverIO-Appium |\n| `reference\u002Fios-specific.md` | iOS-only patterns, XCUITest driver |\n| `reference\u002Fhybrid-apps.md` | WebView testing, context switching |\n\n## Deep Patterns → `reference\u002Fplaybook.md`\n\n| § | Section | Lines |\n|---|---------|-------|\n| 1 | Project Setup & Capabilities | Maven, Android\u002FiOS options |\n| 2 | BaseTest with Thread-Safe Driver | ThreadLocal, multi-platform |\n| 3 | Cross-Platform Page Objects | AndroidFindBy\u002FiOSXCUITFindBy |\n| 4 | Advanced Gestures (W3C Actions) | Swipe, long press, pinch zoom, scroll |\n| 5 | WebView & Hybrid App Testing | Context switching |\n| 6 | Device Interactions | Files, notifications, clipboard, geo |\n| 7 | Parallel Device Execution | Multi-device TestNG XML |\n| 8 | LambdaTest Real Device Cloud | Cloud grid integration |\n| 9 | CI\u002FCD Integration | GitHub Actions, emulator runner |\n| 10 | Debugging Quick-Reference | 12 common problems |\n| 11 | Best Practices Checklist | 13 items |\n\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n","# Appium Automation Skill\n## When to Use\n\nUse this skill when you need generates production-grade Appium mobile automation scripts for Android and iOS in Java, Python, or JavaScript. Supports real device and emulator testing locally and on TestMu AI cloud with 100+ real devices. Use when the user asks to automate mobile apps, test on Android\u002FiOS, write...\n\n\nYou are a senior mobile QA architect. You write production-grade Appium tests\nfor Android and iOS apps that run locally or on TestMu AI cloud real devices.\n\n## Step 1 — Execution Target\n\n```\nUser says \"test mobile app\" \u002F \"automate app\"\n│\n├─ Mentions \"cloud\", \"TestMu\", \"LambdaTest\", \"real device farm\"?\n│  └─ TestMu AI cloud (100+ real devices)\n│\n├─ Mentions \"emulator\", \"simulator\", \"local\"?\n│  └─ Local Appium server\n│\n├─ Mentions specific devices (Pixel 8, iPhone 16)?\n│  └─ Suggest TestMu AI cloud for real device coverage\n│\n└─ Ambiguous? → Default local emulator, mention cloud for real devices\n```\n\n## Step 2 — Platform Detection\n\n```\n├─ Mentions \"Android\", \"APK\", \"Play Store\", \"Pixel\", \"Samsung\", \"Galaxy\"?\n│  └─ Android — automationName: UiAutomator2\n│\n├─ Mentions \"iOS\", \"iPhone\", \"iPad\", \"IPA\", \"App Store\", \"Swift\"?\n│  └─ iOS — automationName: XCUITest\n│\n└─ Both? → Create separate capability sets for each\n```\n\n## Step 3 — Language Detection\n\n| Signal | Language | Client |\n|--------|----------|--------|\n| Default \u002F \"Java\" | Java | `io.appium:java-client` |\n| \"Python\", \"pytest\" | Python | `Appium-Python-Client` |\n| \"JavaScript\", \"Node\" | JavaScript | `webdriverio` with Appium |\n\nFor non-Java languages → read `reference\u002F\u003Clanguage>-patterns.md`\n\n## Core Patterns — Java (Default)\n\n### Desired Capabilities — Android\n\n```java\nUiAutomator2Options options = new UiAutomator2Options()\n    .setDeviceName(\"Pixel 7\")\n    .setPlatformVersion(\"13\")\n    .setApp(\"\u002Fpath\u002Fto\u002Fapp.apk\")\n    .setAutomationName(\"UiAutomator2\")\n    .setAppPackage(\"com.example.app\")\n    .setAppActivity(\"com.example.app.MainActivity\")\n    .setNoReset(true);\n\nAndroidDriver driver = new AndroidDriver(\n    new URL(\"http:\u002F\u002Flocalhost:4723\"), options\n);\n```\n\n### Desired Capabilities — iOS\n\n```java\nXCUITestOptions options = new XCUITestOptions()\n    .setDeviceName(\"iPhone 16\")\n    .setPlatformVersion(\"18\")\n    .setApp(\"\u002Fpath\u002Fto\u002Fapp.ipa\")\n    .setAutomationName(\"XCUITest\")\n    .setBundleId(\"com.example.app\")\n    .setNoReset(true);\n\nIOSDriver driver = new IOSDriver(\n    new URL(\"http:\u002F\u002Flocalhost:4723\"), options\n);\n```\n\n### Locator Strategy Priority\n\n```\n1. AccessibilityId       ← Best: works cross-platform\n2. ID (resource-id)      ← Android: \"com.app:id\u002Flogin_btn\"\n3. Name \u002F Label          ← iOS: accessibility label\n4. Class Name            ← Widget type\n5. XPath                 ← Last resort: slow, fragile\n```\n\n```java\n\u002F\u002F ✅ Best — cross-platform\ndriver.findElement(AppiumBy.accessibilityId(\"loginButton\"));\n\n\u002F\u002F ✅ Good — Android resource ID\ndriver.findElement(AppiumBy.id(\"com.example:id\u002Flogin_btn\"));\n\n\u002F\u002F ✅ Good — iOS predicate\ndriver.findElement(AppiumBy.iOSNsPredicateString(\"label == 'Login'\"));\n\n\u002F\u002F ✅ Good — Android UiAutomator\ndriver.findElement(AppiumBy.androidUIAutomator(\n    \"new UiSelector().text(\"Login\")\"\n));\n\n\u002F\u002F ❌ Avoid — slow, fragile\ndriver.findElement(AppiumBy.xpath(\"\u002F\u002Fandroid.widget.Button[@text='Login']\"));\n```\n\n### Wait Strategy\n\n```java\nWebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(15));\n\n\u002F\u002F Wait for element visible\nWebElement el = wait.until(\n    ExpectedConditions.visibilityOfElementLocated(AppiumBy.accessibilityId(\"dashboard\"))\n);\n\n\u002F\u002F Wait for element clickable\nwait.until(ExpectedConditions.elementToBeClickable(AppiumBy.id(\"submit\"))).click();\n```\n\n### Gestures\n\n```java\n\u002F\u002F Tap\nWebElement el = driver.findElement(AppiumBy.accessibilityId(\"item\"));\nel.click();\n\n\u002F\u002F Long press\nPointerInput finger = new PointerInput(PointerInput.Kind.TOUCH, \"finger\");\nSequence longPress = new Sequence(finger, 0);\nlongPress.addAction(finger.createPointerMove(Duration.ofMillis(0),\n    PointerInput.Origin.viewport(), el.getLocation().x, el.getLocation().y));\nlongPress.addAction(finger.createPointerDown(PointerInput.MouseButton.LEFT.asArg()));\nlongPress.addAction(new Pause(finger, Duration.ofMillis(2000)));\nlongPress.addAction(finger.createPointerUp(PointerInput.MouseButton.LEFT.asArg()));\ndriver.perform(List.of(longPress));\n\n\u002F\u002F Swipe up (scroll down)\nDimension size = driver.manage().window().getSize();\nint startX = size.width \u002F 2;\nint startY = (int) (size.height * 0.8);\nint endY = (int) (size.height * 0.2);\nPointerInput swipeFinger = new PointerInput(PointerInput.Kind.TOUCH, \"finger\");\nSequence swipe = new Sequence(swipeFinger, 0);\nswipe.addAction(swipeFinger.createPointerMove(Duration.ZERO,\n    PointerInput.Origin.viewport(), startX, startY));\nswipe.addAction(swipeFinger.createPointerDown(PointerInput.MouseButton.LEFT.asArg()));\nswipe.addAction(swipeFinger.createPointerMove(Duration.ofMillis(500),\n    PointerInput.Origin.viewport(), startX, endY));\nswipe.addAction(swipeFinger.createPointerUp(PointerInput.MouseButton.LEFT.asArg()));\ndriver.perform(List.of(swipe));\n```\n\n### Anti-Patterns\n\n| Bad | Good | Why |\n|-----|------|-----|\n| `Thread.sleep(5000)` | Explicit `WebDriverWait` | Flaky, slow |\n| XPath for everything | AccessibilityId first | Slow, fragile |\n| Hardcoded coordinates | Element-based actions | Screen size varies |\n| `driver.resetApp()` between tests | `noReset: true` + targeted cleanup | Slow, state issues |\n| Same caps for Android + iOS | Separate capability sets | Different locators\u002FAPIs |\n\n### Test Structure (JUnit 5)\n\n```java\nimport io.appium.java_client.android.AndroidDriver;\nimport io.appium.java_client.android.options.UiAutomator2Options;\nimport org.junit.jupiter.api.*;\nimport org.openqa.selenium.support.ui.WebDriverWait;\nimport java.net.URL;\nimport java.time.Duration;\n\npublic class LoginTest {\n    private AndroidDriver driver;\n    private WebDriverWait wait;\n\n    @BeforeEach\n    void setUp() throws Exception {\n        UiAutomator2Options options = new UiAutomator2Options()\n            .setDeviceName(\"emulator-5554\")\n            .setApp(\"\u002Fpath\u002Fto\u002Fapp.apk\")\n            .setAutomationName(\"UiAutomator2\");\n\n        driver = new AndroidDriver(new URL(\"http:\u002F\u002Flocalhost:4723\"), options);\n        wait = new WebDriverWait(driver, Duration.ofSeconds(15));\n    }\n\n    @Test\n    void testLoginSuccess() {\n        wait.until(ExpectedConditions.visibilityOfElementLocated(\n            AppiumBy.accessibilityId(\"emailInput\"))).sendKeys(\"user@test.com\");\n        driver.findElement(AppiumBy.accessibilityId(\"passwordInput\"))\n            .sendKeys(\"password123\");\n        driver.findElement(AppiumBy.accessibilityId(\"loginButton\")).click();\n        wait.until(ExpectedConditions.visibilityOfElementLocated(\n            AppiumBy.accessibilityId(\"dashboard\")));\n    }\n\n    @AfterEach\n    void tearDown() {\n        if (driver != null) driver.quit();\n    }\n}\n```\n\n### TestMu AI Cloud — Quick Setup\n\n```java\n\u002F\u002F Upload app first:\n\u002F\u002F curl -u \"user:key\" --location --request POST\n\u002F\u002F   'https:\u002F\u002Fmanual-api.lambdatest.com\u002Fapp\u002Fupload\u002FrealDevice'\n\u002F\u002F   --form 'name=\"app\"' --form 'appFile=@\"\u002Fpath\u002Fto\u002Fapp.apk\"'\n\u002F\u002F Response: { \"app_url\": \"lt:\u002F\u002FAPP1234567890\" }\n\nUiAutomator2Options options = new UiAutomator2Options();\noptions.setPlatformName(\"android\");\noptions.setDeviceName(\"Pixel 7\");\noptions.setPlatformVersion(\"13\");\noptions.setApp(\"lt:\u002F\u002FAPP1234567890\");  \u002F\u002F from upload response\noptions.setAutomationName(\"UiAutomator2\");\n\nHashMap\u003CString, Object> ltOptions = new HashMap\u003C>();\nltOptions.put(\"w3c\", true);\nltOptions.put(\"build\", \"Appium Build\");\nltOptions.put(\"name\", \"Login Test\");\nltOptions.put(\"isRealMobile\", true);\nltOptions.put(\"video\", true);\nltOptions.put(\"network\", true);\noptions.setCapability(\"LT:Options\", ltOptions);\n\nString hub = \"https:\u002F\u002F\" + System.getenv(\"LT_USERNAME\") + \":\"\n           + System.getenv(\"LT_ACCESS_KEY\") + \"@mobile-hub.lambdatest.com\u002Fwd\u002Fhub\";\nAndroidDriver driver = new AndroidDriver(new URL(hub), options);\n```\n\n### Test Status Reporting\n\n```java\n((JavascriptExecutor) driver).executeScript(\n    \"lambda-status=\" + (testPassed ? \"passed\" : \"failed\")\n);\n```\n\n## Validation Workflow\n\n1. **Platform caps**: Correct automationName (UiAutomator2 \u002F XCUITest)\n2. **Locators**: AccessibilityId first, no absolute XPath\n3. **Waits**: Explicit WebDriverWait, zero Thread.sleep()\n4. **Gestures**: Use W3C Actions API, not deprecated TouchAction\n5. **App upload**: Use `lt:\u002F\u002F` URL for cloud, local path for emulator\n6. **Timeout**: 30s+ for real devices (slower than emulators)\n\n## Quick Reference\n\n| Task | Code |\n|------|------|\n| Start Appium server | `appium` (CLI) or `appium --relaxed-security` |\n| Install app | `driver.installApp(\"\u002Fpath\u002Fto\u002Fapp.apk\")` |\n| Launch app | `driver.activateApp(\"com.example.app\")` |\n| Background app | `driver.runAppInBackground(Duration.ofSeconds(5))` |\n| Screenshot | `driver.getScreenshotAs(OutputType.FILE)` |\n| Device orientation | `driver.rotate(ScreenOrientation.LANDSCAPE)` |\n| Hide keyboard | `driver.hideKeyboard()` |\n| Push file (Android) | `driver.pushFile(\"\u002Fsdcard\u002Ftest.txt\", bytes)` |\n| Context switch | `driver.context(\"WEBVIEW_com.example\")` |\n| Get contexts | `driver.getContextHandles()` |\n\n## Reference Files\n\n| File | When to Read |\n|------|-------------|\n| `reference\u002Fcloud-integration.md` | App upload, real devices, capabilities |\n| `reference\u002Fpython-patterns.md` | Python + pytest-appium |\n| `reference\u002Fjavascript-patterns.md` | JS + WebdriverIO-Appium |\n| `reference\u002Fios-specific.md` | iOS-only patterns, XCUITest driver |\n| `reference\u002Fhybrid-apps.md` | WebView testing, context switching |\n\n## Deep Patterns → `reference\u002Fplaybook.md`\n\n| § | Section | Lines |\n|---|---------|-------|\n| 1 | Project Setup & Capabilities | Maven, Android\u002FiOS options |\n| 2 | BaseTest with Thread-Safe Driver | ThreadLocal, multi-platform |\n| 3 | Cross-Platform Page Objects | AndroidFindBy\u002FiOSXCUITFindBy |\n| 4 | Advanced Gestures (W3C Actions) | Swipe, long press, pinch zoom, scroll |\n| 5 | WebView & Hybrid App Testing | Context switching |\n| 6 | Device Interactions | Files, notifications, clipboard, geo |\n| 7 | Parallel Device Execution | Multi-device TestNG XML |\n| 8 | LambdaTest Real Device Cloud | Cloud grid integration |\n| 9 | CI\u002FCD Integration | GitHub Actions, emulator runner |\n| 10 | Debugging Quick-Reference | 12 common problems |\n| 11 | Best Practices Checklist | 13 items |\n\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n",{"name":5,"risk":24,"source":25,"license":15,"date_added":26,"description":7,"source_repo":27,"source_type":28,"license_source":29},"critical","https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Ftree\u002Fmain\u002Fappium-skill",1782864000000,"LambdaTest\u002Fagent-skills","community","https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Fblob\u002Fmain\u002FLICENSE","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fappium-skill",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill appium-skill",{"tool":44,"command":45},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill appium-skill",{"tool":47,"command":48},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill appium-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fappium-skill\u002FSKILL.md",true,[],[53,61,66,73,80,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":60},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":62,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":60},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":60},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":60},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":60},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":60},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]