Interface SupportsAutoGrantPermissionsOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.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 java.lang.String
AUTO_GRANT_PERMISSIONS_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default T
autoGrantPermissions()
Enables granting of all the requested application permissions automatically when a test starts.default java.util.Optional<java.lang.Boolean>
doesAutoGrantPermissions()
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
-
-
-
-
Field Detail
-
AUTO_GRANT_PERMISSIONS_OPTION
static final java.lang.String AUTO_GRANT_PERMISSIONS_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 java.util.Optional<java.lang.Boolean> doesAutoGrantPermissions()
Get whether to grant all the requested application permissions automatically when a test starts.- Returns:
- True if the permissions should be granted.
-
-