Interface SupportsSafariIgnoreWebHostnamesOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsSafariIgnoreWebHostnamesOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the comma-separated list of host names to be ignored.default TsetSafariIgnoreWebHostnames(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, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
SAFARI_IGNORE_WEB_HOSTNAMES_OPTION
- See Also:
-
-
Method Details
-
setSafariIgnoreWebHostnames
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
Get the comma-separated list of host names to be ignored.- Returns:
- XCTest result bundle path.
-