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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<String>
    Get the comma-separated list of host names to be ignored.
    default T
    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

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • setSafariIgnoreWebHostnames

      default T setSafariIgnoreWebHostnames(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 Optional<String> getSafariIgnoreWebHostnames()
      Get the comma-separated list of host names to be ignored.
      Returns:
      XCTest result bundle path.