Skip to content

Commit b914237

Browse files
authored
chore: update android capability types (#1326)
1 parent 50e2318 commit b914237

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,45 @@ public interface AndroidMobileCapabilityType extends CapabilityType {
448448
* @since 1.9.0
449449
*/
450450
String DISABLE_WINDOW_ANIMATION = "disableWindowAnimation";
451+
452+
/**
453+
* Specify the Android build-tools version to be something different than the default, which is to use the most
454+
* recent version. It is helpful to use a non-default version if your environment uses alpha/beta build tools.
455+
* @since 1.14.0
456+
*/
457+
String BUILD_TOOLS_VERSION = "buildToolsVersion";
458+
459+
/**
460+
* By default application installation is skipped if newer or the same version of this app is already present on
461+
* the device under test. Setting this option to {@code true} will enforce Appium to always install the current
462+
* application build independently of the currently installed version of it. Defaults to {@code false}.
463+
* @since 1.16.0
464+
*/
465+
String ENFORCE_APP_INSTALL = "enforceAppInstall";
466+
467+
/**
468+
* Whether or not Appium should augment its webview detection with page detection, guaranteeing that any
469+
* webview contexts which show up in the context list have active pages. This can prevent an error if a
470+
* context is selected where Chromedriver cannot find any pages. Defaults to {@code false}.
471+
* @since 1.15.0
472+
*/
473+
String ENSURE_WEBVIEWS_HAVE_PAGES = "ensureWebviewsHavePages";
474+
475+
/**
476+
* To support the `ensureWebviewsHavePages` feature, it is necessary to open a TCP port for communication with
477+
* the webview on the device under test. This capability allows overriding of the default port of {@code 9222},
478+
* in case multiple sessions are running simultaneously (to avoid port clash), or in case the default port
479+
* is not appropriate for your system.
480+
* @since 1.15.0
481+
*/
482+
String WEBVIEW_DEVTOOLS_PORT = "webviewDevtoolsPort";
483+
484+
/**
485+
* Set the maximum number of remote cached apks which are pushed to the device-under-test's
486+
* local storage. Caching apks remotely speeds up the execution of sequential test cases, when using the
487+
* same set of apks, by avoiding the need to be push an apk to the remote file system every time a
488+
* reinstall is needed. Set this capability to {@code 0} to disable caching. Defaults to {@code 10}.
489+
* @since 1.14.0
490+
*/
491+
String REMOTE_APPS_CACHE_LIMIT = "remoteAppsCacheLimit";
451492
}

0 commit comments

Comments
 (0)