Appium General Capabilities

Here is the list of common Appium capabilities
  1. automationName - Selendroid, UiAutomator2, Espresso, XCUITest, YouiEngine
  2. platformName - iOS, Android, Firefox OS
  3. platformVersion - e.g. 8
  4. deviceName - e.g. iPhone 8
  5. app - path to .ipa, .apk, .app, .apks files
  6. fullReset - reset the app
  7. noReset - reset app data only
  8. browserName - Safari, Chrome, Browser (for android native browser)
  9. newCommandTimeout - Session timeout
  10. language - fr,de
  11. locale - fr_CA, US,UK, IN, AU
  12. udid - device id
  13. autoWebview - switch context to webview automatically
  14. printPageSourceOnFindFailure -

Android specific Capabilities

Here is the list of android specific capabilities
  1. appActivity - main activity name
  2. appPackage - App Package name
  3. chromedriverExecutable - path to chromedriver
  4. chromeOptions -
  5. androidScreenshotPath - where to save the screenshots
  6. autoGrantPermissions - grant app permissions automatically
  7. gpsEnabled -
  8. isHeadless -
  9. unlockType - pin/password/pattern/fingerprint
  10. unlockKey - 2348
  11. otherApps - list of apps to be installed

Examples - Capabilities to run test on iPhone 7

{
    "platformName": "iOS",
    "platformVersion": "11.0",
    "deviceName": "iPhone 7",
    "automationName": "XCUITest",
    "app": "/path/to/my.app"
}

Examples - Capabilities to run test on only Android Emulator attached to PC

{
    "platformName": "android",
    "deviceName": "Pixel 9",
    "appPackage": "com.android.calculator2",
    "automationName": "com.android.calculator2.Calculator"
}

Appium Capabilities

https://caps.cloudgrey.io/ provides list of all possible capabilities for various platforms like android, iOS, Windows, Mac etc

Youtube | Facebook | Twitter | Website Home | Online Grocery Shopping Brisbane