

(Android) Reset app state by uninstalling app instead of clearing app data. (iOS) Delete the entire simulator folder. When your test starts, have Appium move directly into Webview context.ĭon’t reset app state before this session. Helps Appium determine the device on which to execute tests.Ĭhange the starting orientation of the device. Unique device identifier for a connected physical device. (Emulator only)Ĭhange the default locale on the device. Whether to have Appium install and launch your app.Ĭhange the default language on the device. Here are some other cross-platform capabilities that affect how your session will run.

To specify that you want to use the Selendroid backend, keep everything else the same, but specify the automationName capability, as follows:Īnd of course, if you’re running any tests on Sauce Labs, make sure to specify the version of Appium you’d like to use with the appiumVersion capability: Sometimes we might want to run an Android test on an older device, and so we need to use Appium’s built-in Selendroid support for older devices. To automate a native or hybrid app instead of a mobile browser, you omit the browserName capability and include the app capability, which is a fully-resolved local path or URL to your application (.app. The new capabilities platformName, platformVersion, and deviceName are _required_ for every session. You would specify the following, for Mobile Safari on iOS 7.1: Appium has adopted the “Selenium 4″ style of session capabilities, which means that, instead of capabilities like this, for example:

The main differences you’ll recognize will have to do with selecting which type of mobile environment you want to automate. For the full list of capabilities Appium supports, please see the capabilities doc. We even have capabilities that are specific to one mobile platform: iOS or Android. However, given that it also exposes mobile-specific functionality, we have some mobile-specific desired capabilities. This is the fourth in a series of posts that discuss using Appium with Sauce Labs.Ĭhapter 1 covered Language Bindings Chapter 2 discusses Touch Actions, and Chapter 3 covers Testing Hybrid Apps & Mobile Web.Īppium, by and large, supports the desired capabilities you’re familiar with from Selenium.
