Interface SupportsEnforceAppInstallOption<T extends BaseOptions<T>>

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

public interface SupportsEnforceAppInstallOption<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<Boolean>
    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
    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

    Methods inherited from interface org.openqa.selenium.Capabilities

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

  • Method Details

    • 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 (Android), true (iOS) by default.
      Parameters:
      value - True to allow test packages installation.
      Returns:
      self instance for chaining.
    • doesEnforceAppInstall

      default Optional<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.