Interface SupportsSafariIgnoreWebHostnamesOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsSafariIgnoreWebHostnamesOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SAFARI_IGNORE_WEB_HOSTNAMES_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>
getSafariIgnoreWebHostnames()
Get the comma-separated list of host names to be ignored.default T
setSafariIgnoreWebHostnames(java.lang.String hostnames)
Provide a list of hostnames (comma-separated) that the Safari automation tools should ignore.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
SAFARI_IGNORE_WEB_HOSTNAMES_OPTION
static final java.lang.String SAFARI_IGNORE_WEB_HOSTNAMES_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSafariIgnoreWebHostnames
default T setSafariIgnoreWebHostnames(java.lang.String hostnames)
Provide a list of hostnames (comma-separated) that the Safari automation tools should ignore. This is to provide a workaround to prevent a webkit bug where the web context is unintentionally changed to a 3rd party website and the test gets stuck. The common culprits are search engines (yahoo, bing, google) and about:blank.- Parameters:
hostnames
- E.g. 'www.yahoo.com, www.bing.com, www.google.com, about:blank'.- Returns:
- self instance for chaining.
-
getSafariIgnoreWebHostnames
default java.util.Optional<java.lang.String> getSafariIgnoreWebHostnames()
Get the comma-separated list of host names to be ignored.- Returns:
- XCTest result bundle path.
-
-