public interface AndroidMobileCapabilityType
extends org.openqa.selenium.remote.CapabilityType
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADB_PORT
Port used to connect to the ADB server (default 5037).
|
static java.lang.String |
ANDROID_COVERAGE
Fully qualified instrumentation class.
|
static java.lang.String |
ANDROID_DEVICE_READY_TIMEOUT
Timeout in seconds used to wait for a device to become ready after booting.
|
static java.lang.String |
ANDROID_DEVICE_SOCKET
Devtools socket name.
|
static java.lang.String |
ANDROID_INSTALL_TIMEOUT
Timeout in milliseconds used to wait for an apk to install to the device.
|
static java.lang.String |
ANDROID_NATURAL_ORIENTATION
Allow for correct handling of orientation on landscape-oriented devices.
|
static java.lang.String |
ANDROID_SCREENSHOT_PATH
The name of the directory on the device in which the screenshot will be put.
|
static java.lang.String |
APP_ACTIVITY
Activity name for the Android activity you want to launch from your package.
|
static java.lang.String |
APP_PACKAGE
Java package of the Android app you want to run.
|
static java.lang.String |
APP_WAIT_ACTIVITY
Activity name/names, comma separated, for the Android activity you want to wait for.
|
static java.lang.String |
APP_WAIT_DURATION
Timeout in milliseconds used to wait for the appWaitActivity to launch (default 20000).
|
static java.lang.String |
APP_WAIT_PACKAGE
Java package of the Android app you want to wait for.
|
static java.lang.String |
AUTO_GRANT_PERMISSIONS
Have Appium automatically determine which permissions your app requires and
grant them to the app on install.
|
static java.lang.String |
AUTO_WEBVIEW_TIMEOUT
Amount of time to wait for Webview context to become active, in ms.
|
static java.lang.String |
AVD
Name of avd to launch.
|
static java.lang.String |
AVD_ARGS
Additional emulator arguments used when launching an avd.
|
static java.lang.String |
AVD_LAUNCH_TIMEOUT
How long to wait in milliseconds for an avd to launch and connect to
ADB (default 120000).
|
static java.lang.String |
AVD_READY_TIMEOUT
How long to wait in milliseconds for an avd to finish its
boot animations (default 120000).
|
static java.lang.String |
CHROME_OPTIONS
Allows passing chromeOptions capability for ChromeDriver.
|
static java.lang.String |
CHROMEDRIVER_EXECUTABLE
The absolute local path to webdriver executable (if Chromium embedder provides
its own webdriver, it should be used instead of original chromedriver
bundled with Appium).
|
static java.lang.String |
DEVICE_READY_TIMEOUT
Timeout in seconds while waiting for device to become ready.
|
static java.lang.String |
DISABLE_ANDROID_WATCHERS
Disables android watchers that watch for application not responding and application crash,
this will reduce cpu usage on android device/emulator.
|
static java.lang.String |
DONT_STOP_APP_ON_RESET
Doesn't stop the process of the app under test, before starting the app using adb.
|
static java.lang.String |
ENABLE_PERFORMANCE_LOGGING
Deprecated.
|
static java.lang.String |
IGNORE_UNIMPORTANT_VIEWS
Calls the setCompressedLayoutHierarchy() uiautomator function.
|
static java.lang.String |
INTENT_ACTION
Intent action which will be used to start activity
(default android.intent.action.MAIN).
|
static java.lang.String |
INTENT_CATEGORY
Intent category which will be used to start
activity (default android.intent.category.LAUNCHER).
|
static java.lang.String |
INTENT_FLAGS
Flags that will be used to start activity (default 0x10200000).
|
static java.lang.String |
KEY_ALIAS
Alias for key.
|
static java.lang.String |
KEY_PASSWORD
Password for key.
|
static java.lang.String |
KEYSTORE_PASSWORD
Password for custom keystore.
|
static java.lang.String |
KEYSTORE_PATH
Path to custom keystore, default ~/.android/debug.keystore.
|
static java.lang.String |
NATIVE_WEB_SCREENSHOT
In a web context, use native (adb) method for taking a screenshot, rather than proxying
to ChromeDriver, default false.
|
static java.lang.String |
NO_SIGN
Skip checking and signing of app with debug keys, will work only with
UiAutomator and not with selendroid, default false.
|
static java.lang.String |
OPTIONAL_INTENT_ARGUMENTS
Additional intent arguments that will be used to start activity.
|
static java.lang.String |
RECREATE_CHROME_DRIVER_SESSIONS
Kill ChromeDriver session when moving to a non-ChromeDriver webview.
|
static java.lang.String |
RESET_KEYBOARD
Reset keyboard to its original state, after running Unicode tests with
unicodeKeyboard capability.
|
static java.lang.String |
SYSTEM_PORT
|
static java.lang.String |
UNICODE_KEYBOARD
Enable Unicode input, default false.
|
static java.lang.String |
USE_KEYSTORE
Use a custom keystore to sign apks, default false.
|
ACCEPT_INSECURE_CERTS, ACCEPT_SSL_CERTS, APPLICATION_NAME, BROWSER_NAME, BROWSER_VERSION, ELEMENT_SCROLL_BEHAVIOR, ENABLE_PERSISTENT_HOVERING, ENABLE_PROFILING_CAPABILITY, HAS_NATIVE_EVENTS, HAS_TOUCHSCREEN, LOGGING_PREFS, OVERLAPPING_CHECK_DISABLED, PAGE_LOAD_STRATEGY, PAGE_LOADING_STRATEGY, PLATFORM, PLATFORM_NAME, PROXY, ROTATABLE, SUPPORTS_ALERTS, SUPPORTS_APPLICATION_CACHE, SUPPORTS_FINDING_BY_CSS, SUPPORTS_JAVASCRIPT, SUPPORTS_LOCATION_CONTEXT, SUPPORTS_NETWORK_CONNECTION, SUPPORTS_SQL_DATABASE, SUPPORTS_WEB_STORAGE, TAKES_SCREENSHOT, UNEXPECTED_ALERT_BEHAVIOUR, UNHANDLED_PROMPT_BEHAVIOUR, VERSIONstatic final java.lang.String APP_ACTIVITY
. (e.g., .MainActivity
instead of MainActivity). By default this capability is received from the package
manifest (action: android.intent.action.MAIN , category: android.intent.category.LAUNCHER)static final java.lang.String APP_PACKAGE
static final java.lang.String APP_WAIT_ACTIVITY
appActivity.
You must set it to the very first focused application activity name in case it is different
from the one which is set as appActivity if your capability has appActivity
and appPackage. You can also use wildcards (*).static final java.lang.String APP_WAIT_PACKAGE
appActivitystatic final java.lang.String APP_WAIT_DURATION
static final java.lang.String DEVICE_READY_TIMEOUT
static final java.lang.String ANDROID_COVERAGE
@Deprecated static final java.lang.String ENABLE_PERFORMANCE_LOGGING
MobileCapabilityType.ENABLE_PERFORMANCE_LOGGINGstatic final java.lang.String ANDROID_DEVICE_READY_TIMEOUT
static final java.lang.String ADB_PORT
static final java.lang.String ANDROID_DEVICE_SOCKET
static final java.lang.String ANDROID_INSTALL_TIMEOUT
static final java.lang.String AVD
static final java.lang.String AVD_LAUNCH_TIMEOUT
static final java.lang.String AVD_READY_TIMEOUT
static final java.lang.String AVD_ARGS
static final java.lang.String USE_KEYSTORE
static final java.lang.String KEYSTORE_PATH
static final java.lang.String KEYSTORE_PASSWORD
static final java.lang.String KEY_ALIAS
static final java.lang.String KEY_PASSWORD
static final java.lang.String CHROMEDRIVER_EXECUTABLE
static final java.lang.String AUTO_WEBVIEW_TIMEOUT
static final java.lang.String INTENT_ACTION
static final java.lang.String INTENT_CATEGORY
static final java.lang.String INTENT_FLAGS
static final java.lang.String OPTIONAL_INTENT_ARGUMENTS
static final java.lang.String DONT_STOP_APP_ON_RESET
static final java.lang.String UNICODE_KEYBOARD
static final java.lang.String RESET_KEYBOARD
static final java.lang.String NO_SIGN
static final java.lang.String IGNORE_UNIMPORTANT_VIEWS
static final java.lang.String DISABLE_ANDROID_WATCHERS
static final java.lang.String CHROME_OPTIONS
static final java.lang.String RECREATE_CHROME_DRIVER_SESSIONS
static final java.lang.String NATIVE_WEB_SCREENSHOT
static final java.lang.String ANDROID_SCREENSHOT_PATH
static final java.lang.String AUTO_GRANT_PERMISSIONS
static final java.lang.String ANDROID_NATURAL_ORIENTATION
true to basically flip the meaning of PORTRAIT and LANDSCAPE.
Defaults to false.static final java.lang.String SYSTEM_PORT
systemPort used to connect to
appium-uiautomator2-server or
appium-espresso-driver.
The default is 8200 in general and selects one port from 8200 to 8299
for appium-uiautomator2-server, it is 8300 from 8300 to 8399 for
appium-espresso-driver. When you run tests in parallel, you must adjust the port to avoid conflicts. Read
Parallel Testing Setup Guide for more details.