Interface SupportsRemoteAppsCacheLimitOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Integer> getRemoteAppsCacheLimit()
      Get the maximum amount of apps that could be cached on the remote device.
      default T setRemoteAppsCacheLimit​(int limit)
      Sets the maximum amount of application packages to be cached on the device under test.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

      • REMOTE_APPS_CACHE_LIMIT_OPTION

        static final java.lang.String REMOTE_APPS_CACHE_LIMIT_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • 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 java.util.Optional<java.lang.Integer> getRemoteAppsCacheLimit()
        Get the maximum amount of apps that could be cached on the remote device.
        Returns:
        The maximum amount of cached apps.