Interface SupportsSafariDeviceNameOption<T extends BaseOptions<T>>

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

    public interface SupportsSafariDeviceNameOption<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> getSafariDeviceName()
      Get the name of the device.
      default T setSafariDeviceName​(java.lang.String deviceName)
      safaridriver will only create a session using hosts whose device name matches the value of safari:deviceName.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • SAFARI_DEVICE_NAME_OPTION

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

      • setSafariDeviceName

        default T setSafariDeviceName​(java.lang.String deviceName)
        safaridriver will only create a session using hosts whose device name matches the value of safari:deviceName. Device names are compared case-insensitively. NOTE: Device names for connected devices are shown in iTunes. If Xcode is installed, device names for connected devices are available via the output of instruments(1) and in the Devices and Simulators window (accessed in Xcode via "Window -> Devices and Simulators").
        Parameters:
        deviceName - Device name.
        Returns:
        self instance for chaining.
      • getSafariDeviceName

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