Interface SupportsIncludeSafariInWebviewsOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsIncludeSafariInWebviewsOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INCLUDE_SAFARI_IN_WEBVIEWS_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Boolean>
doesIncludeSafariInWebviews()
Get whether to add Safari web views to the list of contexts available during a native/webview app test.default T
includeSafariInWebviews()
Enforces Safari web views to be added to the list of contexts available during a native/webview app test.default T
setIncludeSafariInWebviews(boolean value)
Add Safari web contexts to the list of contexts available during a native/webview app test.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
INCLUDE_SAFARI_IN_WEBVIEWS_OPTION
static final java.lang.String INCLUDE_SAFARI_IN_WEBVIEWS_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
includeSafariInWebviews
default T includeSafariInWebviews()
Enforces Safari web views to be added to the list of contexts available during a native/webview app test.- Returns:
- self instance for chaining.
-
setIncludeSafariInWebviews
default T setIncludeSafariInWebviews(boolean value)
Add Safari web contexts to the list of contexts available during a native/webview app test. This is useful if the test opens Safari and needs to be able to interact with it. Defaults to false.- Parameters:
value
- Whether to add Safari to the list of contexts available during a native/webview app test.- Returns:
- self instance for chaining.
-
doesIncludeSafariInWebviews
default java.util.Optional<java.lang.Boolean> doesIncludeSafariInWebviews()
Get whether to add Safari web views to the list of contexts available during a native/webview app test.- Returns:
- True or false.
-
-