Interface SupportsEnforceAppInstallOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsEnforceAppInstallOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENFORCE_APP_INSTALL_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Boolean>
doesEnforceAppInstall()
Get whether the application under test is always reinstalled even if a newer version of it already exists on the device under test.default T
enforceAppInstall()
Sets the application under test is always reinstalled even if a newer version of it already exists on the device under test.default T
setEnforceAppInstall(boolean value)
Allows setting whether the application under test is always reinstalled even if a newer version of it already exists on the device under test.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
ENFORCE_APP_INSTALL_OPTION
static final java.lang.String ENFORCE_APP_INSTALL_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
enforceAppInstall
default T enforceAppInstall()
Sets the application under test is always reinstalled even if a newer version of it already exists on the device under test.- Returns:
- self instance for chaining.
-
setEnforceAppInstall
default T setEnforceAppInstall(boolean value)
Allows setting whether the application under test is always reinstalled even if a newer version of it already exists on the device under test. false by default.- Parameters:
value
- True to allow test packages installation.- Returns:
- self instance for chaining.
-
doesEnforceAppInstall
default java.util.Optional<java.lang.Boolean> doesEnforceAppInstall()
Get whether the application under test is always reinstalled even if a newer version of it already exists on the device under test.- Returns:
- True or false.
-
-