Interface SupportsIncludeSafariInWebviewsOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, 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 final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Boolean>
    Get whether to add Safari web views to the list of contexts available during a native/webview app test.
    default T
    Enforces Safari web views to be added to the list of contexts available during a native/webview app test.
    default T
    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

    Methods inherited from interface org.openqa.selenium.Capabilities

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

  • Method Details

    • 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 Optional<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.