General Capabilities in Appium



General Capabilities in Appium

Appium Tutorial for iOS and Android apps

These Capabilities works for multiple drivers.

Capability Description Values
automationName Which automation engine to use Appium (default) or Selendroid or

UiAutomator2 or Espresso for Android or XCUITest for iOS or YouiEngine

for application built with You.i Engine

platformName Which mobile OS platform to use iOSAndroid, or FirefoxOS
platformVersion Mobile OS version e.g., 7.14.4
deviceName The kind of mobile device or emulator

to use

iPhone SimulatoriPad Simulator,

iPhone Retina 4-inchAndroid

EmulatorGalaxy S4, etc….

On iOS, this should be one of the

valid devices returned by instruments

with instruments -s devices.

On Android this capability is currently

ignored, though it remains required.

app The absolute local path or remote http

URL to an .ipaor .apk file, or a .zip

 containing one of these. Appium will

attempt to install this app binary on the

appropriate device first. Note that this

capability is not required for Android if

youspecify appPackage and

appActivity

capabilities (see below). Incompatible

with browserName.

/abs/path/to/my.apk or

http://myapp.com/app.ipa

browserName Name of mobile web browser to automate.

Should be an empty string if automating an

app instead.

‘Safari’ for iOS and ‘Chrome’, ‘Chromium’, or ‘Browser’ for Android
newCommandTimeout How long (in seconds) Appium will wait for

a new command from the client before

assuming the client quit and ending the

session

e.g. 60
language (Sim/Emu-only) Language to set for the

simulator / emulator. On Android, available

only on API levels 22 and below

e.g. fr
locale (Sim/Emu-only) Locale to set for the

simulator / emulator.

e.g. fr_CA
udid Unique device identifier of the connected

physical device

e.g. 1ae203187fc012g
orientation (Sim/Emu-only) start in a certain orientation LANDSCAPE or PORTRAIT
autoWebview Move directly into Webview context. Default

false

truefalse
noReset Don’t reset app state before this session. truefalse
fullReset Perform a complete reset. truefalse
eventTimings Enable or disable the reporting of the timings

for various Appium-internal events (e.g., the

start and end of each command, etc.).

Defaults to false. To enable, use true.

The timings are then reported as events

property on response to querying the current session.

e.g., true
enablePerformance

Logging

(Web and webview only) Enable Chromedriver’s (on Android) or Safari’s (on iOS) performance logging (default false) truefalse
printPageSourceOn

FindFailure

When a find operation fails, print the current page source. Defaults to false. e.g., true
Tags: , , ,
Leave a comment

Your email address will not be published. Required fields are marked *

Subscribe now

Receive weekly newsletter with educational materials, new courses, most popular posts, popular books and much more!

https://bridgejunks.com/ https://crownmakesense.com/ https://brithaniabookjudges.com/ https://hughesroyality.com/ https://rhythmholic.com/ https://bandar89.simnasfikpunhas.com/ https://www.100calshop.co.il/products/thailand/ https://myasociados.com/ https://solyser.com/ http://konfidence.cz/ https://muscadinepdx.com/ https://bandar89.parajesandinos.com.ve/ https://goremekoop.com/ https://oncoswisscenter.com/ https://www.turunclifehotel.com/bandar89/ https://www.houseofproducts.biz/ https://taimoormphotography.com/
BIJI18 BIJI18 BIJI18