Interface SupportsAutoAcceptAlertsOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsAutoAcceptAlertsOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AUTO_ACCEPT_ALERTS_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default T
autoAcceptAlerts()
Enforce to accept all alerts automatically.default java.util.Optional<java.lang.Boolean>
doesAutoAcceptAlerts()
Get whether to accept all alerts automatically.default T
setAutoAcceptAlerts(boolean value)
Accept all iOS alerts automatically if they pop up.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
AUTO_ACCEPT_ALERTS_OPTION
static final java.lang.String AUTO_ACCEPT_ALERTS_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
autoAcceptAlerts
default T autoAcceptAlerts()
Enforce to accept all alerts automatically.- Returns:
- self instance for chaining.
-
setAutoAcceptAlerts
default T setAutoAcceptAlerts(boolean value)
Accept all iOS alerts automatically if they pop up. This includes privacy access permission alerts (e.g., location, contacts, photos). Default is false.- Parameters:
value
- Whether to accepts alerts automatically.- Returns:
- self instance for chaining.
-
doesAutoAcceptAlerts
default java.util.Optional<java.lang.Boolean> doesAutoAcceptAlerts()
Get whether to accept all alerts automatically.- Returns:
- True or false.
-
-