Interface SupportsAutoGrantPermissionsOption<T extends BaseOptions<T>>

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

public interface SupportsAutoGrantPermissionsOption<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 T
    Enables granting of all the requested application permissions automatically when a test starts.
    default Optional<Boolean>
    Get whether to grant all the requested application permissions automatically when a test starts.
    default T
    setAutoGrantPermissions(boolean value)
    Whether to grant all the requested application permissions automatically when a test starts(true).

    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

    • autoGrantPermissions

      default T autoGrantPermissions()
      Enables granting of all the requested application permissions automatically when a test starts.
      Returns:
      self instance for chaining.
    • setAutoGrantPermissions

      default T setAutoGrantPermissions(boolean value)
      Whether to grant all the requested application permissions automatically when a test starts(true). false by default.
      Parameters:
      value - Whether to enable or disable automatic permissions granting.
      Returns:
      self instance for chaining.
    • doesAutoGrantPermissions

      default Optional<Boolean> doesAutoGrantPermissions()
      Get whether to grant all the requested application permissions automatically when a test starts.
      Returns:
      True if the permissions should be granted.