Browse QA Engineers Section 3: Automation Scripts

Appium Cross-Platform Script

5 fill-in slots · from The AI Prompt Handbook for QA Engineers

Your details

0/5 filled

Appium Cross-Platform Script

Write an Appium automation script that tests this feature on both iOS and Android.

TEST CASE:
[Paste the manual test case]

ELEMENT IDENTIFIERS:
- iOS accessibility identifiers: [List]
- Android test tags / resource IDs: [List]

APPIUM SETUP:
- Language: [Java / JavaScript / Python / TypeScript]
- Framework: [WebdriverIO / Appium Java client / etc.]
- Appium version: [2.x]

Generate a cross-platform test that:
1. Uses a platform abstraction layer (one test, two platform implementations)
2. Looks up elements by accessibility ID (cross-platform compatible)
3. Handles platform-specific differences (navigation, gestures, waits)
4. Includes proper WebDriverWait instead of implicit waits
5. Captures screenshots on failure
6. Is structured for the Page Object Model

Provide:
- The base page class
- iOS-specific page implementation
- Android-specific page implementation
- The test class

Highlighted [slots] are still empty. Downloads are plain .txt — paste into any AI assistant.