Interface SupportsRemoteAppsCacheLimitOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, Serializable
All Known Implementing Classes:
EspressoOptions, UiAutomator2Options

public interface SupportsRemoteAppsCacheLimitOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Integer>
    Get the maximum amount of apps that could be cached on the remote device.
    default T
    Sets the maximum amount of application packages to be cached on the device under test.

    Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability

    amend, setCapability

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • setRemoteAppsCacheLimit

      default T setRemoteAppsCacheLimit(int limit)
      Sets the maximum amount of application packages to be cached on the device under test. This is needed for devices that don't support streamed installs (Android 7 and below), because ADB must push app packages to the device first in order to install them, which takes some time. Setting this capability to zero disables apps caching. 10 by default.
      Parameters:
      limit - The maximum amount of cached apps.
      Returns:
      self instance for chaining.
    • getRemoteAppsCacheLimit

      default Optional<Integer> getRemoteAppsCacheLimit()
      Get the maximum amount of apps that could be cached on the remote device.
      Returns:
      The maximum amount of cached apps.