Interface SupportsEnforceAppInstallOption<T extends BaseOptions<T>>

    • 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 org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • 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.