Interface SupportsAutoAcceptAlertsOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsAutoAcceptAlertsOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault TEnforce to accept all alerts automatically.Get whether to accept all alerts automatically.default TsetAutoAcceptAlerts(boolean value) Accept all iOS alerts automatically if they pop up.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
AUTO_ACCEPT_ALERTS_OPTION
- See Also:
-
-
Method Details
-
autoAcceptAlerts
Enforce to accept all alerts automatically.- Returns:
- self instance for chaining.
-
setAutoAcceptAlerts
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
Get whether to accept all alerts automatically.- Returns:
- True or false.
-