Interface SupportsIncludeSafariInWebviewsOption<T extends BaseOptions<T>>

    • 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 org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • 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.