Interface SupportsSafariDeviceTypeOption<T extends BaseOptions<T>>

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

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

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.String> getSafariDeviceType()
      Get the type of the device.
      default T setSafariDeviceType​(java.lang.String deviceType)
      If the value of safari:deviceType is 'iPhone', safaridriver will only create a session using an iPhone device or iPhone simulator.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • SAFARI_DEVICE_TYPE_OPTION

        static final java.lang.String SAFARI_DEVICE_TYPE_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • setSafariDeviceType

        default T setSafariDeviceType​(java.lang.String deviceType)
        If the value of safari:deviceType is 'iPhone', safaridriver will only create a session using an iPhone device or iPhone simulator. If the value of safari:deviceType is 'iPad', safaridriver will only create a session using an iPad device or iPad simulator. Values of safari:deviceType are compared case-insensitively.
        Parameters:
        deviceType - Device type name.
        Returns:
        self instance for chaining.
      • getSafariDeviceType

        default java.util.Optional<java.lang.String> getSafariDeviceType()
        Get the type of the device.
        Returns:
        String representing the type of the device.