Interface SupportsSafariDeviceTypeOption<T extends BaseOptions<T>>

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

public interface SupportsSafariDeviceTypeOption<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<String>
    Get the type of the device.
    default T
    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 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

    • setSafariDeviceType

      default T setSafariDeviceType(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 Optional<String> getSafariDeviceType()
      Get the type of the device.
      Returns:
      String representing the type of the device.