Interface SupportsBundleIdOption<T extends BaseOptions<T>>

  • All Superinterfaces:
    CanSetCapability<T>, org.openqa.selenium.Capabilities, java.io.Serializable
    All Known Implementing Classes:
    Mac2Options

    public interface SupportsBundleIdOption<T extends BaseOptions<T>>
    extends org.openqa.selenium.Capabilities, CanSetCapability<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BUNDLE_ID_OPTION  
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.String> getBundleId()
      Get the bundle identifier of the application to automate.
      default T setBundleId​(java.lang.String identifier)
      The bundle identifier of the application to automate, for example com.apple.TextEdit.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Method Detail

      • setBundleId

        default T setBundleId​(java.lang.String identifier)
        The bundle identifier of the application to automate, for example com.apple.TextEdit. This is an optional capability. If it is not provided then the session will be started without an application under test (actually, it will be Finder). If the application with the given identifier is not installed then an error will be thrown on session startup. If the application is already running then it will be moved to the foreground.
        Parameters:
        identifier - A valid application bundle identifier.
        Returns:
        self instance for chaining.
      • getBundleId

        default java.util.Optional<java.lang.String> getBundleId()
        Get the bundle identifier of the application to automate.
        Returns:
        Application bundle identifier.