Interface SupportsRemoteAppsCacheLimitOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.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 java.lang.String
REMOTE_APPS_CACHE_LIMIT_OPTION
-
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 io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
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.
-
-